Add traditional german variant

This commit is contained in:
tzugen 2022-03-20 08:50:57 +01:00
parent c2d62e8688
commit 2d8b93301f
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930
5 changed files with 9 additions and 3 deletions

View File

@ -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'
} }

View File

@ -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)

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="main.artists_title">Interpreten</string>
</resources>

View File

@ -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>

View File

@ -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>