Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
armed committed Mar 9, 2011
1 parent ba95c0f commit aee53de
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions framework/src/play/data/binding/AnnotationHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,13 @@ public static Tuple getLocale(String[] langs) {
String[] commaSeparatedLang = l.split(",");
for (String lang : commaSeparatedLang) {
if (Lang.get().equals(lang) || "*".equals(lang)) {
Locale locale = null;
if ("*".equals(lang)) {
lang = Locale.getDefault().getLanguage();
locale = Lang.getLocale();
}
if (locale == null) {
locale = Lang.getLocale(lang);
}
Locale locale = Lang.getLocale(lang);
if (locale != null) {
return new Tuple(i, locale);
}
Expand Down

0 comments on commit aee53de

Please sign in to comment.