Skip to content

Commit

Permalink
Add Arabic Translator
Browse files Browse the repository at this point in the history
Co-Authored-By: muhammadbahaa2001 <76573761+muhammadbahaa2001@users.noreply.github.com>
  • Loading branch information
AkosPaha01 and muhammadbahaa2001 committed Oct 3, 2024
1 parent ab53582 commit 2fda529
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,25 @@ class About(private val activity: AppCompatActivity, private val args: SafeJSON)
builder.categoryHeader("translators") {
titleRes = R.string.translators
}
builder.pref("ar") {
titleRes = R.string.arabic
summaryRes = R.string.muhammadbahaa2001
useTint = false
iconRes = FlagKit.getResId(activity, "arab")
}
builder.pref("pt-rBR") {
titleRes = R.string.portuguese_brazilian
summaryRes = R.string.igormiguell
useTint = false
iconRes = FlagKit.getResId(activity, "br")
}
builder.pref("zh")
{
titleRes = R.string.chinese
summaryRes = R.string.contingency
useTint = false
iconRes = FlagKit.getResId(activity, "cn")
}
builder.pref("fr") {
titleRes = R.string.french
summaryRes = R.string.yoanndp
Expand Down Expand Up @@ -197,11 +210,5 @@ class About(private val activity: AppCompatActivity, private val args: SafeJSON)
useTint = false
iconRes = FlagKit.getResId(activity, "vn")
}
builder.pref("zh") {
titleRes = R.string.chinese
summaryRes = R.string.contingency
useTint = false
iconRes = FlagKit.getResId(activity, "cn")
}
}
}
2 changes: 1 addition & 1 deletion app/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -307,4 +307,4 @@
<string name="keyboard_redesign_google_sans_details">استخدام إعادة تصميم لوحة المفاتيح Google Sans</string>
<string name="emoji_compat_app_whitelist_details">استخدام إصلاح توافق الإيموجي</string>
<string name="enable_email_provider_completion_details">استخدام مزود البريد الإلكتروني</string>
</resources>
</resources>
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings-do-not-translate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@
<string name="contingency">Contingency</string>
<string name="french">French</string>
<string name="yoanndp">Yoanndp</string>
<string name="arabic">Arabic</string>
<string name="muhammadbahaa2001">Muhammadbahaa</string>
</resources>
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fragment-ktx = "1.8.3"
lifecycle-viewmodel-ktx = "2.8.6"
browser = "1.8.0"
glide = "4.16.0"
flagkit = "1.0.2"
flagkit = "1.0.3"
firebase-bom = "33.4.0"
firebase-messaging-ktx = "24.0.2"
firebase-analytics-ktx = "22.1.2"
Expand Down Expand Up @@ -87,7 +87,7 @@ espresso-core = { group = "androidx.test.espresso", name = "espresso-core", vers

browser = { group = "androidx.browser", name = "browser", version.ref = "browser" }
glide = { group = "com.github.bumptech.glide", name = "glide", version.ref = "glide" }
flagkit = { group = "com.github.murgupluoglu", name = "flagkit-android", version.ref = "flagkit" }
flagkit = { group = "com.github.akospaha01", name = "flagkit-android", version.ref = "flagkit" }

ui-tooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "uiTooling" }
kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref = "kotlinReflect" }
Expand Down

0 comments on commit 2fda529

Please sign in to comment.