From 765071ebefe7a79b9c51638516bf0b39e7517c31 Mon Sep 17 00:00:00 2001 From: CranberrySoup <142951702+CranberrySoup@users.noreply.github.com> Date: Wed, 15 Nov 2023 16:30:29 +0000 Subject: [PATCH] Fixed flag and name for Levantine Arabic and Najdi Arabic (#770) --- .../com/lagradost/cloudstream3/ui/settings/SettingsGeneral.kt | 4 ++-- .../java/com/lagradost/cloudstream3/utils/SubtitleHelper.kt | 4 +++- 2 files changed, 5 insertions(+), 3 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 224ca74a..5a751096 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 @@ -55,10 +55,10 @@ fun getCurrentLocale(context: Context): String { // https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes leave blank for auto val appLanguages = arrayListOf( /* begin language list */ - Triple("", "ajp", "ajp"), + Triple("", "عربي شامي", "ajp"), Triple("", "አማርኛ", "am"), Triple("", "العربية", "ar"), - Triple("", "ars", "ars"), + Triple("", "اللهجة النجدية", "ars"), Triple("", "български", "bg"), Triple("", "বাংলা", "bn"), Triple("\uD83C\uDDE7\uD83C\uDDF7", "português brasileiro", "bp"), diff --git a/app/src/main/java/com/lagradost/cloudstream3/utils/SubtitleHelper.kt b/app/src/main/java/com/lagradost/cloudstream3/utils/SubtitleHelper.kt index 33f1b6ff..09f5e0f1 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/utils/SubtitleHelper.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/utils/SubtitleHelper.kt @@ -153,9 +153,11 @@ object SubtitleHelper { private val flags = mapOf( "af" to "ZA", "agq" to "CM", + "ajp" to "SY", "ak" to "GH", "am" to "ET", "ar" to "AE", + "ars" to "SA", "as" to "IN", "asa" to "TZ", "az" to "AZ", @@ -515,4 +517,4 @@ object SubtitleHelper { Language639("Zhuang", "Saɯ cueŋƅ, Saw cuengh", "za", "zha", "zha", "zha", ""), Language639("Zulu", "isiZulu", "zu", "zul", "zul", "zul", ""), ) -} \ No newline at end of file +}