Fix no possibility to set English language explicitly in config. #152

This commit is contained in:
Michal Kordas 2015-05-24 10:39:17 +02:00 committed by Roman Ivanov
parent 59ffd34e43
commit d6966ec1f7
1 changed files with 6 additions and 1 deletions

View File

@ -332,7 +332,12 @@ public final class LocalizedMessage
/** @param locale the locale to use for localization **/
public static void setLocale(Locale locale) {
sLocale = locale;
if (Locale.ENGLISH.getLanguage().equals(locale.getLanguage())) {
sLocale = Locale.ROOT;
}
else {
sLocale = locale;
}
}
////////////////////////////////////////////////////////////////////////////