Skip to content

Commit

Permalink
Add support for arabic
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas2 committed Jul 21, 2023
1 parent 4c2af6d commit c14aa6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/net/bible/service/common/CommonUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,7 @@ object CommonUtils : CommonUtilsBase() {
val goodLanguages = listOf(
"af", "cs", "de", "en", "eo", "es", "fi", "fr", "hi", "hu", "it", "kk", "lt", "my", "nl", "pl", "pt", "ro", "ru",
"sk", "sl", "te", "uk", "zh-Hans-CN", "zh-Hant-TW", "he", "iw"
// almost: "ko", "he" (hebrew, check...)
// almost: "ko", "he", "ar" (hebrew, check...)
)

fun checkLanguage(lang: String): Boolean =
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
<string-array name="prefs_interface_locale_descriptions">
<item>@string/lang_default</item>
<item>@string/lang_afrikaans</item>
<item>@string/lang_arabic</item>
<item>@string/lang_azerbaijani</item>
<item>@string/lang_bengali</item>
<item>@string/lang_bulgarian</item>
Expand Down Expand Up @@ -129,6 +130,7 @@
<string-array name="prefs_interface_locale_values">
<item></item>
<item>af</item>
<item>ar</item>
<item>az</item>
<item>bn</item>
<item>bg</item>
Expand Down

0 comments on commit c14aa6d

Please sign in to comment.