From fadedfd58f1bc62aea8e913662984f84f20631bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20Str=C3=B6mgren?= Date: Mon, 14 Mar 2022 22:43:19 +0100 Subject: [PATCH] Add Swedish layout --- res/values/arrays.xml | 2 ++ res/xml/method.xml | 2 +- res/xml/qwerty_sv_se.xml | 42 ++++++++++++++++++++++++++++++++ srcs/juloo.keyboard2/Config.java | 11 +++++---- 4 files changed, 51 insertions(+), 6 deletions(-) create mode 100644 res/xml/qwerty_sv_se.xml diff --git a/res/values/arrays.xml b/res/values/arrays.xml index edf8af6..26d807e 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -6,6 +6,7 @@ qwerty qwerty_es qwerty_lv + qwerty_sv_se ru_jcuken qwertz bgph1 @@ -17,6 +18,7 @@ QWERTY QWERTY (Español) QWERTY (Latvian) + QWERTY (Swedish) ЙЦУКЕН (Русский) QWERTZ Bulgarian (Phonetic Traditional) diff --git a/res/xml/method.xml b/res/xml/method.xml index 91c4329..015aaba 100644 --- a/res/xml/method.xml +++ b/res/xml/method.xml @@ -10,5 +10,5 @@ - + diff --git a/res/xml/qwerty_sv_se.xml b/res/xml/qwerty_sv_se.xml new file mode 100644 index 0000000..26a8fe5 --- /dev/null +++ b/res/xml/qwerty_sv_se.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index 0c92c76..e78a45a 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -201,13 +201,14 @@ final class Config switch (name) { case "azerty": return R.xml.azerty; - case "qwerty": return R.xml.qwerty; - case "qwerty_lv": return R.xml.qwerty_lv; - case "qwerty_es": return R.xml.qwerty_es; - case "ru_jcuken": return R.xml.local_ru_jcuken; - case "qwertz": return R.xml.qwertz; case "bgph1": return R.xml.local_bgph1; case "dvorak": return R.xml.dvorak; + case "qwerty_es": return R.xml.qwerty_es; + case "qwerty_lv": return R.xml.qwerty_lv; + case "qwerty": return R.xml.qwerty; + case "qwerty_sv_se": return R.xml.qwerty_sv_se; + case "qwertz": return R.xml.qwertz; + case "ru_jcuken": return R.xml.local_ru_jcuken; case "system": default: return -1; } }