Override German

pull/200/head
M66B 3 years ago
parent 6107910e99
commit b78c47315f

@ -64,11 +64,13 @@ public class ApplicationEx extends Application
.commit(); // apply won't work here
}
String language = prefs.getString("language", null);
if ("de-AT".equals(language) || "de-LI)".equals(language))
language = "de-DE";
String tag = Locale.getDefault().toLanguageTag();
if (!("de-AT".equals(tag) || "de-LI".equals(tag)))
tag = null;
String language = prefs.getString("language", tag);
if (language != null) {
if ("de-AT".equals(language) || "de-LI".equals(language))
language = "de-DE";
Locale locale = Locale.forLanguageTag(language);
EntityLog.log(context, "Set language=" + language + " locale=" + locale);
Locale.setDefault(locale);

Loading…
Cancel
Save