CHANGED: added comment

CHANGED: default locale
This commit is contained in:
Kc 2018-10-12 08:27:49 +02:00
parent 2d0ced5a72
commit 2eb808a0b7
2 changed files with 2 additions and 1 deletions

View File

@ -137,6 +137,7 @@ public class AnnotationPostProcessor implements ReaderListener {
String key = keys.get(prop.keyName());
if(key != null) {
String originalValue = prop.getValue(item);
// XXX: use configurable or browser locale instead english?
String translation = translator.translate(Locale.ENGLISH, context.path, key, originalValue);
prop.setValue(item, translation);
}

View File

@ -31,7 +31,7 @@ public class Settings {
// Globalization
private String translationsPath = "globalization/";
private String[] translationsDefaultLocales = {"en-GB"};
private String[] translationsDefaultLocales = {"en"};
// Constants
private static final String SETTINGS_FILENAME = "settings.json";