From dd385561025dd2098944c21ae8b515e2e389b61b Mon Sep 17 00:00:00 2001 From: Cloudburst <18114966+C10udburst@users.noreply.github.com> Date: Thu, 9 Feb 2023 20:25:00 +0100 Subject: [PATCH] address issue #339 Co-authored-by: eightyy8 <64216434+eightyy8@users.noreply.github.com> --- .../ui/settings/SettingsGeneral.kt | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) 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 649aa634..45bd8bd6 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 @@ -57,47 +57,47 @@ fun getCurrentLocale(context: Context): String { val appLanguages = arrayListOf( /* begin language list */ Triple("", "العربية", "ar"), - Triple("", "български език", "bg"), + Triple("", "български", "bg"), Triple("", "বাংলা", "bn"), Triple("\uD83C\uDDE7\uD83C\uDDF7", "Brazilian Portuguese", "bp"), Triple("", "čeština", "cs"), Triple("", "Deutsch", "de"), - Triple("", "ελληνικά", "el"), + Triple("", "Ελληνικά", "el"), Triple("", "English", "en"), Triple("", "Esperanto", "eo"), - Triple("", "Español", "es"), + Triple("", "español", "es"), Triple("", "فارسی", "fa"), Triple("", "français", "fr"), + Triple("\uD83C\uDDEE\uD83C\uDDF1", "עברית", "he"), Triple("", "हिन्दी", "hi"), - Triple("", "hrvatski jezik", "hr"), + Triple("", "hrvatski", "hr"), Triple("", "magyar", "hu"), - Triple("\uD83C\uDDEE\uD83C\uDDE9", "Indonesian", "in"), - Triple("", "Italiano", "it"), - Triple("\uD83C\uDDEE\uD83C\uDDF1", "עִברִית", "iw"), + Triple("\uD83C\uDDEE\uD83C\uDDE9", "Bahasa Indonesia", "in"), + Triple("", "italiano", "it"), Triple("", "ಕನ್ನಡ", "kn"), - Triple("", "македонски јазик", "mk"), + Triple("", "македонски", "mk"), Triple("", "മലയാളം", "ml"), Triple("", "Nederlands", "nl"), - Triple("", "Norsk nynorsk", "nn"), - Triple("", "Norsk", "no"), - Triple("", "język polski", "pl"), - Triple("\uD83C\uDDF5\uD83C\uDDF9", "Português", "pt"), + Triple("", "norsk nynorsk", "nn"), + Triple("", "norsk bokmål", "no"), + Triple("", "polski", "pl"), + Triple("\uD83C\uDDF5\uD83C\uDDF9", "português", "pt"), Triple("🦍", "mmmm... monke", "qt"), - Triple("", "Română", "ro"), - Triple("", "Русский", "ru"), + Triple("", "română", "ro"), + Triple("", "русский", "ru"), Triple("", "slovenčina", "sk"), Triple("", "Soomaaliga", "so"), Triple("", "svenska", "sv"), Triple("", "தமிழ்", "ta"), - Triple("", "Wikang Tagalog", "tl"), + Triple("", "Tagalog", "tl"), Triple("", "Türkçe", "tr"), - Triple("", "Українська", "uk"), + Triple("", "українська", "uk"), Triple("", "اردو", "ur"), Triple("", "Tiếng Việt", "vi"), - Triple("", "中文 (Zhōngwén)", "zh"), - Triple("\uD83C\uDDF9\uD83C\uDDFC", "Chinese Traditional", "zh-rTW"), + Triple("", "中文", "zh"), + Triple("\uD83C\uDDF9\uD83C\uDDFC", "文言", "zh-rTW"), /* end language list */ -).sortedBy { it.second } //ye, we go alphabetical, so ppl don't put their lang on top +).sortedBy { it.second?.toLowerCase() } //ye, we go alphabetical, so ppl don't put their lang on top class SettingsGeneral : PreferenceFragmentCompat() { override fun onViewCreated(view: View, savedInstanceState: Bundle?) {