Skip to content
Browse files

[#8] bugfix on i18n when messages are in conf/messages

  • Loading branch information...
1 parent a6b7768 commit 3f9491259c2277e90e29dc097d7fdb0bd963253b @jto jto committed Mar 1, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 framework/src/play/i18n/Messages.java
View
2 framework/src/play/i18n/Messages.java
@@ -167,6 +167,8 @@ public static String formatString(String value, Object... args) {
* @return messages as a {@link java.util.Properties java.util.Properties}
*/
public static Properties all(String locale) {
+ if(locale == null || "".equals(locale))
+ return defaults;
return locales.get(locale);
}

0 comments on commit 3f94912

Please sign in to comment.
Something went wrong with that request. Please try again.