Add traditional german variant
This commit is contained in:
parent
c2d62e8688
commit
2d8b93301f
|
@ -14,7 +14,6 @@ android {
|
||||||
|
|
||||||
minSdkVersion versions.minSdk
|
minSdkVersion versions.minSdk
|
||||||
targetSdkVersion versions.targetSdk
|
targetSdkVersion versions.targetSdk
|
||||||
resConfigs 'cs', 'de', 'en', 'es', 'fr', 'hu', 'it', 'nl', 'pl', 'pt', 'pt-rBR', 'ru', 'zh-rCN', 'zh-rTW'
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ class LocaleHelper(base: Context?) : ContextWrapper(base) {
|
||||||
var context = ctx
|
var context = ctx
|
||||||
if (context != null && language != "") {
|
if (context != null && language != "") {
|
||||||
val config = context.resources.configuration
|
val config = context.resources.configuration
|
||||||
val locale = Locale(language)
|
val locale = Locale.forLanguageTag(language)
|
||||||
Locale.setDefault(locale)
|
Locale.setDefault(locale)
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||||
setSystemLocale(config, locale)
|
setSystemLocale(config, locale)
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<string name="main.artists_title">Interpreten</string>
|
||||||
|
</resources>
|
|
@ -244,6 +244,7 @@
|
||||||
<item>@string/language.en</item>
|
<item>@string/language.en</item>
|
||||||
<item>@string/language.fr</item>
|
<item>@string/language.fr</item>
|
||||||
<item>@string/language.de</item>
|
<item>@string/language.de</item>
|
||||||
|
<item>@string/language.de_DE_1901</item>
|
||||||
<item>@string/language.hu</item>
|
<item>@string/language.hu</item>
|
||||||
<item>@string/language.it</item>
|
<item>@string/language.it</item>
|
||||||
<item>@string/language.es</item>
|
<item>@string/language.es</item>
|
||||||
|
@ -262,12 +263,13 @@
|
||||||
<item>en</item>
|
<item>en</item>
|
||||||
<item>fr</item>
|
<item>fr</item>
|
||||||
<item>de</item>
|
<item>de</item>
|
||||||
|
<item>de-DE-1901</item>
|
||||||
<item>hu</item>
|
<item>hu</item>
|
||||||
<item>it</item>
|
<item>it</item>
|
||||||
<item>es</item>
|
<item>es</item>
|
||||||
<item>pl</item>
|
<item>pl</item>
|
||||||
<item>pt</item>
|
<item>pt</item>
|
||||||
<item>pt_br</item>
|
<item>pt-BR</item>
|
||||||
<item>ru</item>
|
<item>ru</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
</resources>
|
</resources>
|
|
@ -103,6 +103,7 @@
|
||||||
<string name="language.en">English</string>
|
<string name="language.en">English</string>
|
||||||
<string name="language.fr">French</string>
|
<string name="language.fr">French</string>
|
||||||
<string name="language.de">German</string>
|
<string name="language.de">German</string>
|
||||||
|
<string name="language.de_DE_1901">German (traditional)</string>
|
||||||
<string name="language.hu">Hungarian</string>
|
<string name="language.hu">Hungarian</string>
|
||||||
<string name="language.it">Italian</string>
|
<string name="language.it">Italian</string>
|
||||||
<string name="language.es">Spanish</string>
|
<string name="language.es">Spanish</string>
|
||||||
|
|
Loading…
Reference in New Issue