diff --git a/app/src/main/kotlin/org/fossify/keyboard/extensions/Context.kt b/app/src/main/kotlin/org/fossify/keyboard/extensions/Context.kt index 892986cb..ccabbe9a 100644 --- a/app/src/main/kotlin/org/fossify/keyboard/extensions/Context.kt +++ b/app/src/main/kotlin/org/fossify/keyboard/extensions/Context.kt @@ -39,6 +39,8 @@ import org.fossify.keyboard.databases.ClipsDatabase import org.fossify.keyboard.helpers.Config import org.fossify.keyboard.helpers.INPUT_METHOD_SUBTYPE_VOICE import org.fossify.keyboard.helpers.LANGUAGE_ARABIC +import org.fossify.keyboard.helpers.LANGUAGE_BELARUSIAN_CYRL +import org.fossify.keyboard.helpers.LANGUAGE_BELARUSIAN_LATN import org.fossify.keyboard.helpers.LANGUAGE_BENGALI import org.fossify.keyboard.helpers.LANGUAGE_BULGARIAN import org.fossify.keyboard.helpers.LANGUAGE_CENTRAL_KURDISH @@ -268,6 +270,8 @@ fun Context.getKeyboardLanguagesRadioItems(): ArrayList { fun Context.getKeyboardLanguageText(language: Int): String { return when (language) { LANGUAGE_ARABIC -> getString(R.string.translation_arabic) + LANGUAGE_BELARUSIAN_CYRL -> "${getString(R.string.translation_belarusian)} (Cyrillic)" + LANGUAGE_BELARUSIAN_LATN -> "${getString(R.string.translation_belarusian)} (Latin)" LANGUAGE_BENGALI -> getString(R.string.translation_bengali) LANGUAGE_BULGARIAN -> getString(R.string.translation_bulgarian) LANGUAGE_CENTRAL_KURDISH -> getString(R.string.translation_central_kurdish) diff --git a/app/src/main/kotlin/org/fossify/keyboard/helpers/Constants.kt b/app/src/main/kotlin/org/fossify/keyboard/helpers/Constants.kt index 73a07e90..3d11ac61 100644 --- a/app/src/main/kotlin/org/fossify/keyboard/helpers/Constants.kt +++ b/app/src/main/kotlin/org/fossify/keyboard/helpers/Constants.kt @@ -54,10 +54,14 @@ const val LANGUAGE_ESPERANTO = 23 const val LANGUAGE_HEBREW = 24 const val LANGUAGE_ARABIC = 25 const val LANGUAGE_CENTRAL_KURDISH = 26 +const val LANGUAGE_BELARUSIAN_CYRL = 27 +const val LANGUAGE_BELARUSIAN_LATN = 28 // Keep this sorted val SUPPORTED_LANGUAGES = listOf( LANGUAGE_ARABIC, + LANGUAGE_BELARUSIAN_CYRL, + LANGUAGE_BELARUSIAN_LATN, LANGUAGE_BENGALI, LANGUAGE_BULGARIAN, LANGUAGE_CENTRAL_KURDISH, diff --git a/app/src/main/kotlin/org/fossify/keyboard/services/SimpleKeyboardIME.kt b/app/src/main/kotlin/org/fossify/keyboard/services/SimpleKeyboardIME.kt index 0b1afc0d..ffb49305 100644 --- a/app/src/main/kotlin/org/fossify/keyboard/services/SimpleKeyboardIME.kt +++ b/app/src/main/kotlin/org/fossify/keyboard/services/SimpleKeyboardIME.kt @@ -439,6 +439,8 @@ class SimpleKeyboardIME : InputMethodService(), OnKeyboardActionListener, Shared private fun getKeyboardLayoutXML(): Int { return when (baseContext.config.keyboardLanguage) { LANGUAGE_ARABIC -> R.xml.keys_letters_arabic + LANGUAGE_BELARUSIAN_CYRL -> R.xml.keys_letters_belarusian_cyrl + LANGUAGE_BELARUSIAN_LATN -> R.xml.keys_letters_belarusian_latn LANGUAGE_BENGALI -> R.xml.keys_letters_bengali LANGUAGE_BULGARIAN -> R.xml.keys_letters_bulgarian LANGUAGE_CENTRAL_KURDISH -> R.xml.keys_letters_central_kurdish diff --git a/app/src/main/res/xml/keys_letters_belarusian_cyrl.xml b/app/src/main/res/xml/keys_letters_belarusian_cyrl.xml new file mode 100644 index 00000000..8e2d92e9 --- /dev/null +++ b/app/src/main/res/xml/keys_letters_belarusian_cyrl.xml @@ -0,0 +1,186 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/xml/keys_letters_belarusian_latn.xml b/app/src/main/res/xml/keys_letters_belarusian_latn.xml new file mode 100644 index 00000000..a3050cda --- /dev/null +++ b/app/src/main/res/xml/keys_letters_belarusian_latn.xml @@ -0,0 +1,173 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +