From 2f892cff038f9857c7336592bf78b2914f222dc7 Mon Sep 17 00:00:00 2001 From: asereze Date: Fri, 25 Oct 2024 17:11:41 +0200 Subject: [PATCH 1/4] Update LocaleHelper.kt Adding Sardinian --- app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt b/app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt index 537d846ad..5ee5081a3 100644 --- a/app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt +++ b/app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt @@ -76,6 +76,7 @@ object LocaleHelper { Language("ro", "Romanian"), Language("ru", "Russian"), Language("sat", "Santali"), + Language("sc", "Sardinian"), Language("sr", "Serbian"), Language("tr", "Turkish"), Language("uk", "Ukrainian"), From 3468dd755f2a43c7a5be504e8bd8cbc9a6c2606c Mon Sep 17 00:00:00 2001 From: asereze Date: Fri, 25 Oct 2024 19:14:08 +0200 Subject: [PATCH 2/4] Added missing available languages Added languages: Bulgarian Catalan Chinese (Traditional) Danish Dutch Estonian Hungarian Interlingua Kabyle Korean Lithuanian Malay Persian Punjabi Punjabi (Pakistan) Swedish Tamil Tatar --- .../com/bnyro/translate/util/LocaleHelper.kt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt b/app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt index 5ee5081a3..aadfa854b 100644 --- a/app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt +++ b/app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt @@ -55,21 +55,36 @@ object LocaleHelper { Language("ar", "Arabic"), Language("az", "Azerbaijani"), Language("be", "Belarusian"), + Language("bg", "Bulgarian") + Language("bn", "Bengali"), + Language("ca", "Catalan"), Language("cs", "Czech"), + Language("da", "Danish"), Language("de", "German"), Language("es", "Spanish"), + Language("et", "Estonian"), + Language("fa", "Persian"), Language("fi", "Finnish"), Language("fil", "Filipino"), Language("fr-rFR", "French"), Language("he", "Hebrew"), Language("hi", "Hindi"), + Language("hu", "Hungarian"), + Language("ia", "Interlingua"), Language("id", "Indonesian"), Language("it", "Italian"), Language("ja", "Japanese"), + Language("kab", "Kabyle"), + Language("ko", "Korean"), + Language("lt", "Lithuanian"), Language("ml", "Malayalam"), + Language("ms", "Malay"), Language("nb-rNO", "Norwegian Bokmål"), + Language("nl", "Dutch"), Language("nn", "Norwegian Nynorsk"), Language("or", "Odia"), + Language("pa", "Punjabi"), + Language("pa-rPK", "Punjabi (Pakistan)"), Language("pl", "Polish"), Language("pt", "Portuguese"), Language("pt-rBR", "Portuguese (Brazil)"), @@ -78,10 +93,14 @@ object LocaleHelper { Language("sat", "Santali"), Language("sc", "Sardinian"), Language("sr", "Serbian"), + Language("sv", "Swedish"), + Language("ta", "Tamil"), Language("tr", "Turkish"), + Language("tt", "Tatar"), Language("uk", "Ukrainian"), Language("vi", "Vietnamese"), Language("zh-rCN", "Chinese (Simplified)") + Language("zh-rTW", "Chinese (Traditional)") ).sortedBy { it.name }.toMutableList() .apply { add(0, Language("", context.getString(R.string.system))) From 38ba5c75fdc2b9f3dde197c964131414b9f23005 Mon Sep 17 00:00:00 2001 From: asereze Date: Fri, 25 Oct 2024 19:47:39 +0200 Subject: [PATCH 3/4] Update LocaleHelper.kt --- app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt b/app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt index aadfa854b..5c50980d4 100644 --- a/app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt +++ b/app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt @@ -99,7 +99,7 @@ object LocaleHelper { Language("tt", "Tatar"), Language("uk", "Ukrainian"), Language("vi", "Vietnamese"), - Language("zh-rCN", "Chinese (Simplified)") + Language("zh-rCN", "Chinese (Simplified)"), Language("zh-rTW", "Chinese (Traditional)") ).sortedBy { it.name }.toMutableList() .apply { From c0a1ab34c37a14dddaee9ed80a9cdca55a2b6b31 Mon Sep 17 00:00:00 2001 From: asereze Date: Fri, 25 Oct 2024 19:48:52 +0200 Subject: [PATCH 4/4] Update LocaleHelper.kt --- app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt b/app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt index 5c50980d4..034f05944 100644 --- a/app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt +++ b/app/src/main/java/com/bnyro/translate/util/LocaleHelper.kt @@ -55,7 +55,7 @@ object LocaleHelper { Language("ar", "Arabic"), Language("az", "Azerbaijani"), Language("be", "Belarusian"), - Language("bg", "Bulgarian") + Language("bg", "Bulgarian"), Language("bn", "Bengali"), Language("ca", "Catalan"), Language("cs", "Czech"),