From 0073ad8c81b4d82b8ae75ba590a2bc5b518e8c24 Mon Sep 17 00:00:00 2001 From: Cloudburst <18114966+C10udburst@users.noreply.github.com> Date: Sun, 25 Dec 2022 19:56:59 +0100 Subject: [PATCH] fix zh-TW --- app/src/main/java/com/lagradost/cloudstream3/CommonActivity.kt | 2 +- .../com/lagradost/cloudstream3/ui/settings/SettingsGeneral.kt | 2 +- app/src/main/res/{values-zh-TW => values-zh-rTW}/strings.xml | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename app/src/main/res/{values-zh-TW => values-zh-rTW}/strings.xml (100%) diff --git a/app/src/main/java/com/lagradost/cloudstream3/CommonActivity.kt b/app/src/main/java/com/lagradost/cloudstream3/CommonActivity.kt index 81a65fa4..89f0ae51 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/CommonActivity.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/CommonActivity.kt @@ -116,7 +116,7 @@ object CommonActivity { * when setting the app language. **/ val appLanguageExceptions = hashMapOf( - "zh-TW" to Locale.TRADITIONAL_CHINESE + "zh-rTW" to Locale.TRADITIONAL_CHINESE ) fun setLocale(context: Context?, languageCode: String?) { diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/settings/SettingsGeneral.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/settings/SettingsGeneral.kt index 2e3ea612..af87248b 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/settings/SettingsGeneral.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/settings/SettingsGeneral.kt @@ -84,7 +84,7 @@ val appLanguages = arrayListOf( Triple("", "Turkish", "tr"), Triple("", "Viet Nam", "vi"), Triple("", "Chinese Simplified", "zh"), - Triple("\uD83C\uDDF9\uD83C\uDDFC", "Chinese Traditional", "zh-TW"), + Triple("\uD83C\uDDF9\uD83C\uDDFC", "Chinese Traditional", "zh-rTW"), /* end language list */ ).sortedBy { it.second } //ye, we go alphabetical, so ppl don't put their lang on top diff --git a/app/src/main/res/values-zh-TW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml similarity index 100% rename from app/src/main/res/values-zh-TW/strings.xml rename to app/src/main/res/values-zh-rTW/strings.xml