adding german keyboard qwertz

This commit is contained in:
tibbi 2022-04-02 17:23:57 +02:00
parent c930f56fd9
commit b94a69d1de
4 changed files with 5 additions and 5 deletions

View File

@ -8,11 +8,7 @@ import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.models.RadioItem
import com.simplemobiletools.keyboard.R
import com.simplemobiletools.keyboard.extensions.config
import com.simplemobiletools.keyboard.helpers.LANGUAGE_ENGLISH_QWERTY
import com.simplemobiletools.keyboard.helpers.LANGUAGE_ENGLISH_QWERTZ
import com.simplemobiletools.keyboard.helpers.LANGUAGE_FRENCH
import com.simplemobiletools.keyboard.helpers.LANGUAGE_RUSSIAN
import com.simplemobiletools.keyboard.helpers.LANGUAGE_SPANISH
import com.simplemobiletools.keyboard.helpers.*
import kotlinx.android.synthetic.main.activity_settings.*
import java.util.*
import kotlin.system.exitProcess
@ -117,6 +113,7 @@ class SettingsActivity : SimpleActivity() {
RadioItem(LANGUAGE_ENGLISH_QWERTY, getKeyboardLanguageText(LANGUAGE_ENGLISH_QWERTY)),
RadioItem(LANGUAGE_ENGLISH_QWERTZ, getKeyboardLanguageText(LANGUAGE_ENGLISH_QWERTZ)),
RadioItem(LANGUAGE_FRENCH, getKeyboardLanguageText(LANGUAGE_FRENCH)),
RadioItem(LANGUAGE_GERMAN, getKeyboardLanguageText(LANGUAGE_GERMAN)),
RadioItem(LANGUAGE_SPANISH, getKeyboardLanguageText(LANGUAGE_SPANISH)),
RadioItem(LANGUAGE_RUSSIAN, getKeyboardLanguageText(LANGUAGE_RUSSIAN))
)
@ -131,6 +128,7 @@ class SettingsActivity : SimpleActivity() {
private fun getKeyboardLanguageText(language: Int): String {
return when (language) {
LANGUAGE_FRENCH -> getString(R.string.translation_french)
LANGUAGE_GERMAN -> getString(R.string.translation_german)
LANGUAGE_RUSSIAN -> getString(R.string.translation_russian)
LANGUAGE_ENGLISH_QWERTZ -> "${getString(R.string.translation_english)} (QWERTZ)"
LANGUAGE_SPANISH -> getString(R.string.translation_spanish)

View File

@ -22,3 +22,4 @@ const val LANGUAGE_RUSSIAN = 1
const val LANGUAGE_FRENCH = 2
const val LANGUAGE_ENGLISH_QWERTZ = 3
const val LANGUAGE_SPANISH = 4
const val LANGUAGE_GERMAN = 5

View File

@ -247,6 +247,7 @@ class SimpleKeyboardIME : InputMethodService(), MyKeyboardView.OnKeyboardActionL
LANGUAGE_RUSSIAN -> R.xml.keys_letters_russian
LANGUAGE_ENGLISH_QWERTZ -> R.xml.keys_letters_english_qwertz
LANGUAGE_SPANISH -> R.xml.keys_letters_spanish_qwerty
LANGUAGE_GERMAN -> R.xml.keys_letters_german
else -> R.xml.keys_letters_english_qwerty
}
}