mirror of https://github.com/M66B/FairEmail.git
Override German
This commit is contained in:
parent
6107910e99
commit
b78c47315f
|
@ -64,11 +64,13 @@ public class ApplicationEx extends Application
|
||||||
.commit(); // apply won't work here
|
.commit(); // apply won't work here
|
||||||
}
|
}
|
||||||
|
|
||||||
String language = prefs.getString("language", null);
|
String tag = Locale.getDefault().toLanguageTag();
|
||||||
if ("de-AT".equals(language) || "de-LI)".equals(language))
|
if (!("de-AT".equals(tag) || "de-LI".equals(tag)))
|
||||||
language = "de-DE";
|
tag = null;
|
||||||
|
String language = prefs.getString("language", tag);
|
||||||
if (language != null) {
|
if (language != null) {
|
||||||
|
if ("de-AT".equals(language) || "de-LI".equals(language))
|
||||||
|
language = "de-DE";
|
||||||
Locale locale = Locale.forLanguageTag(language);
|
Locale locale = Locale.forLanguageTag(language);
|
||||||
EntityLog.log(context, "Set language=" + language + " locale=" + locale);
|
EntityLog.log(context, "Set language=" + language + " locale=" + locale);
|
||||||
Locale.setDefault(locale);
|
Locale.setDefault(locale);
|
||||||
|
|
Loading…
Reference in New Issue