mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-10 00:27:45 +00:00
Keyboard layouts for languages primarily used in Africa (#1483)
This commit is contained in:
parent
e042adc5b8
commit
c32b3bada4
16 changed files with 474 additions and 5 deletions
|
@ -266,7 +266,7 @@ private fun getCurrencyKey(locale: Locale): Pair<String, List<String>> {
|
|||
return euro
|
||||
if (locale.language.matches("ca|eu|lb|mt".toRegex()))
|
||||
return euro
|
||||
if (locale.language.matches("fa|iw|ko|lo|mn|ne|si|th|uk|vi|km".toRegex()))
|
||||
if (locale.language.matches("ak|dag|ee|fa|gaa|ha|ig|iw|lo|ko|km|mn|ne|si|th|uk|vi|yo".toRegex()))
|
||||
return genericCurrencyKey(getCurrency(locale))
|
||||
if (locale.language == "hy")
|
||||
return dram
|
||||
|
@ -292,17 +292,24 @@ private fun getCurrency(locale: Locale): String {
|
|||
if (locale.country == "BD") return "৳"
|
||||
if (locale.country == "LK") return "රු"
|
||||
return when (locale.language) {
|
||||
"ak" -> "¢"
|
||||
"dag" -> "¢"
|
||||
"ee" -> "¢"
|
||||
"fa" -> "﷼"
|
||||
"gaa" -> "¢"
|
||||
"ha" -> "₦"
|
||||
"ig" -> "₦"
|
||||
"iw" -> "₪"
|
||||
"ko" -> "₩"
|
||||
"lo" -> "₭"
|
||||
"km" -> "៛"
|
||||
"ko" -> "₩"
|
||||
"mn" -> "₮"
|
||||
"ne" -> "रु."
|
||||
"si" -> "රු"
|
||||
"th" -> "฿"
|
||||
"uk" -> "₴"
|
||||
"vi" -> "₫"
|
||||
"km" -> "៛"
|
||||
"yo" -> "₦"
|
||||
else -> "$"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -188,7 +188,7 @@ object LocaleUtils {
|
|||
fun getLocaleDisplayNameInLocale(locale: Locale, resources: Resources, displayLocale: Locale): String {
|
||||
val languageTag = locale.toLanguageTag()
|
||||
if (languageTag == SubtypeLocaleUtils.NO_LANGUAGE) return resources.getString(R.string.subtype_no_language)
|
||||
if (locale.script() != locale.language.constructLocale().script() || locale.language == "mns" || locale.language == "xdq" || locale.language=="dru") {
|
||||
if (locale.script() != locale.language.constructLocale().script() || locale.language == "mns" || locale.language == "xdq" || locale.language=="dru" || locale.language=="st" || locale.language=="dag") {
|
||||
val resId = resources.getIdentifier(
|
||||
"subtype_${languageTag.replace("-", "_")}",
|
||||
"string",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue