Language.kt - languages sorted inside enum
This commit is contained in:
parent
535409e9ee
commit
326772789b
|
@ -5,56 +5,56 @@ import androidx.annotation.StringRes
|
||||||
import com.simplemobiletools.keyboard.R
|
import com.simplemobiletools.keyboard.R
|
||||||
|
|
||||||
enum class Language(@StringRes private val stringRes: Int, private val layout: Int) {
|
enum class Language(@StringRes private val stringRes: Int, private val layout: Int) {
|
||||||
ENGLISH_QWERTY(
|
BENGALI(
|
||||||
R.string.translation_english, R.xml.keys_letters_english_qwerty
|
R.string.translation_bengali, R.xml.keys_letters_bengali
|
||||||
),
|
|
||||||
RUSSIAN(
|
|
||||||
R.string.translation_russian, R.xml.keys_letters_russian
|
|
||||||
),
|
|
||||||
FRENCH(
|
|
||||||
R.string.translation_french, R.xml.keys_letters_french
|
|
||||||
),
|
|
||||||
ENGLISH_QWERTZ(
|
|
||||||
R.string.translation_english, R.xml.keys_letters_english_qwertz
|
|
||||||
),
|
|
||||||
SPANISH(
|
|
||||||
R.string.translation_spanish, R.string.translation_spanish
|
|
||||||
),
|
|
||||||
GERMAN(
|
|
||||||
R.string.translation_german, R.xml.keys_letters_german
|
|
||||||
),
|
|
||||||
ENGLISH_DVORAK(
|
|
||||||
R.string.translation_english, R.xml.keys_letters_english_dvorak
|
|
||||||
),
|
|
||||||
ROMANIAN(
|
|
||||||
R.string.translation_romanian, R.xml.keys_letters_romanian
|
|
||||||
),
|
|
||||||
SLOVENIAN(
|
|
||||||
R.string.translation_slovenian, R.xml.keys_letters_slovenian
|
|
||||||
),
|
),
|
||||||
BULGARIAN(
|
BULGARIAN(
|
||||||
R.string.translation_bulgarian, R.xml.keys_letters_bulgarian
|
R.string.translation_bulgarian, R.xml.keys_letters_bulgarian
|
||||||
),
|
),
|
||||||
TURKISH_Q(
|
DANISH(
|
||||||
R.string.translation_turkish, R.xml.keys_letters_turkish_q
|
R.string.translation_danish, R.xml.keys_letters_danish
|
||||||
),
|
),
|
||||||
LITHUANIAN(
|
ENGLISH_DVORAK(
|
||||||
R.string.translation_lithuanian, R.xml.keys_letters_lithuanian
|
R.string.translation_english, R.xml.keys_letters_english_dvorak
|
||||||
),
|
),
|
||||||
BENGALI(
|
ENGLISH_QWERTY(
|
||||||
R.string.translation_bengali, R.xml.keys_letters_bengali
|
R.string.translation_english, R.xml.keys_letters_english_qwerty
|
||||||
|
),
|
||||||
|
ENGLISH_QWERTZ(
|
||||||
|
R.string.translation_english, R.xml.keys_letters_english_qwertz
|
||||||
|
),
|
||||||
|
FRENCH(
|
||||||
|
R.string.translation_french, R.xml.keys_letters_french
|
||||||
|
),
|
||||||
|
GERMAN(
|
||||||
|
R.string.translation_german, R.xml.keys_letters_german
|
||||||
),
|
),
|
||||||
GREEK(
|
GREEK(
|
||||||
R.string.translation_greek, R.xml.keys_letters_greek
|
R.string.translation_greek, R.xml.keys_letters_greek
|
||||||
),
|
),
|
||||||
Norwegian(
|
LITHUANIAN(
|
||||||
|
R.string.translation_lithuanian, R.xml.keys_letters_lithuanian
|
||||||
|
),
|
||||||
|
NORWEGIAN(
|
||||||
R.string.translation_norwegian, R.xml.keys_letters_norwegian
|
R.string.translation_norwegian, R.xml.keys_letters_norwegian
|
||||||
),
|
),
|
||||||
Swedish(
|
ROMANIAN(
|
||||||
|
R.string.translation_romanian, R.xml.keys_letters_romanian
|
||||||
|
),
|
||||||
|
RUSSIAN(
|
||||||
|
R.string.translation_russian, R.xml.keys_letters_russian
|
||||||
|
),
|
||||||
|
SLOVENIAN(
|
||||||
|
R.string.translation_slovenian, R.xml.keys_letters_slovenian
|
||||||
|
),
|
||||||
|
SPANISH(
|
||||||
|
R.string.translation_spanish, R.string.translation_spanish
|
||||||
|
),
|
||||||
|
SWEDISH(
|
||||||
R.string.translation_swedish, R.xml.keys_letters_swedish
|
R.string.translation_swedish, R.xml.keys_letters_swedish
|
||||||
),
|
),
|
||||||
Danish(
|
TURKISH_Q(
|
||||||
R.string.translation_danish, R.xml.keys_letters_danish
|
R.string.translation_turkish, R.xml.keys_letters_turkish_q
|
||||||
);
|
);
|
||||||
|
|
||||||
fun getName(context: Context): String {
|
fun getName(context: Context): String {
|
||||||
|
|
Loading…
Reference in New Issue