diff --git a/app/src/main/kotlin/com/simplemobiletools/keyboard/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/keyboard/extensions/Context.kt index adad7ea..c05e933 100644 --- a/app/src/main/kotlin/com/simplemobiletools/keyboard/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/keyboard/extensions/Context.kt @@ -181,12 +181,14 @@ fun Context.getKeyboardLanguages(): ArrayList { RadioItem(LANGUAGE_GREEK, getKeyboardLanguageText(LANGUAGE_GREEK)), RadioItem(LANGUAGE_LITHUANIAN, getKeyboardLanguageText(LANGUAGE_LITHUANIAN)), RadioItem(LANGUAGE_NORWEGIAN, getKeyboardLanguageText(LANGUAGE_NORWEGIAN)), + RadioItem(LANGUAGE_POLISH, getKeyboardLanguageText(LANGUAGE_POLISH)), RadioItem(LANGUAGE_ROMANIAN, getKeyboardLanguageText(LANGUAGE_ROMANIAN)), RadioItem(LANGUAGE_RUSSIAN, getKeyboardLanguageText(LANGUAGE_RUSSIAN)), RadioItem(LANGUAGE_SLOVENIAN, getKeyboardLanguageText(LANGUAGE_SLOVENIAN)), RadioItem(LANGUAGE_SPANISH, getKeyboardLanguageText(LANGUAGE_SPANISH)), RadioItem(LANGUAGE_SWEDISH, getKeyboardLanguageText(LANGUAGE_SWEDISH)), RadioItem(LANGUAGE_TURKISH_Q, getKeyboardLanguageText(LANGUAGE_TURKISH_Q)), + RadioItem(LANGUAGE_UKRAINIAN, getKeyboardLanguageText(LANGUAGE_UKRAINIAN)), RadioItem(LANGUAGE_VIETNAMESE_TELEX, getKeyboardLanguageText(LANGUAGE_VIETNAMESE_TELEX)), ) } @@ -204,12 +206,14 @@ fun Context.getKeyboardLanguageText(language: Int): String { LANGUAGE_GREEK -> getString(R.string.translation_greek) LANGUAGE_LITHUANIAN -> getString(R.string.translation_lithuanian) LANGUAGE_NORWEGIAN -> getString(R.string.translation_norwegian) + LANGUAGE_POLISH -> getString(R.string.translation_polish) LANGUAGE_ROMANIAN -> getString(R.string.translation_romanian) LANGUAGE_RUSSIAN -> getString(R.string.translation_russian) LANGUAGE_SLOVENIAN -> getString(R.string.translation_slovenian) LANGUAGE_SPANISH -> getString(R.string.translation_spanish) LANGUAGE_SWEDISH -> getString(R.string.translation_swedish) LANGUAGE_TURKISH_Q -> "${getString(R.string.translation_turkish)} (Q)" + LANGUAGE_UKRAINIAN -> getString(R.string.translation_ukrainian) LANGUAGE_VIETNAMESE_TELEX -> "${getString(R.string.translation_vietnamese)} (Telex)" else -> "${getString(R.string.translation_english)} (QWERTY)" } diff --git a/app/src/main/kotlin/com/simplemobiletools/keyboard/helpers/Constants.kt b/app/src/main/kotlin/com/simplemobiletools/keyboard/helpers/Constants.kt index b8a26cb..4c5208c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/keyboard/helpers/Constants.kt +++ b/app/src/main/kotlin/com/simplemobiletools/keyboard/helpers/Constants.kt @@ -44,6 +44,8 @@ const val LANGUAGE_SWEDISH = 15 const val LANGUAGE_DANISH = 16 const val LANGUAGE_FRENCH_BEPO = 17 const val LANGUAGE_VIETNAMESE_TELEX = 18 +const val LANGUAGE_POLISH = 19 +const val LANGUAGE_UKRAINIAN = 20 // keyboard height percentage options const val KEYBOARD_HEIGHT_70_PERCENT = 70 diff --git a/app/src/main/kotlin/com/simplemobiletools/keyboard/services/SimpleKeyboardIME.kt b/app/src/main/kotlin/com/simplemobiletools/keyboard/services/SimpleKeyboardIME.kt index 7f3d81f..88adcd8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/keyboard/services/SimpleKeyboardIME.kt +++ b/app/src/main/kotlin/com/simplemobiletools/keyboard/services/SimpleKeyboardIME.kt @@ -406,12 +406,14 @@ class SimpleKeyboardIME : InputMethodService(), OnKeyboardActionListener, Shared LANGUAGE_GREEK -> R.xml.keys_letters_greek LANGUAGE_LITHUANIAN -> R.xml.keys_letters_lithuanian LANGUAGE_NORWEGIAN -> R.xml.keys_letters_norwegian + LANGUAGE_POLISH -> R.xml.keys_letters_polish LANGUAGE_ROMANIAN -> R.xml.keys_letters_romanian LANGUAGE_RUSSIAN -> R.xml.keys_letters_russian LANGUAGE_SLOVENIAN -> R.xml.keys_letters_slovenian LANGUAGE_SWEDISH -> R.xml.keys_letters_swedish LANGUAGE_SPANISH -> R.xml.keys_letters_spanish_qwerty LANGUAGE_TURKISH_Q -> R.xml.keys_letters_turkish_q + LANGUAGE_UKRAINIAN -> R.xml.keys_letters_ukrainian else -> R.xml.keys_letters_english_qwerty } } diff --git a/app/src/main/res/xml/keys_letters_polish.xml b/app/src/main/res/xml/keys_letters_polish.xml new file mode 100644 index 0000000..45a1483 --- /dev/null +++ b/app/src/main/res/xml/keys_letters_polish.xml @@ -0,0 +1,173 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/xml/keys_letters_ukrainian.xml b/app/src/main/res/xml/keys_letters_ukrainian.xml new file mode 100644 index 0000000..b25b618 --- /dev/null +++ b/app/src/main/res/xml/keys_letters_ukrainian.xml @@ -0,0 +1,186 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +