abouttreesummaryrefslogcommitdiff
path: root/res/values
diff options
context:
space:
mode:
authorJules Aguillon2021-05-09 00:09:10 +0200
committerJules Aguillon2021-05-09 00:09:10 +0200
commit7a3312fd01ef2bf48b146677766f7ea4b036b7df (patch)
treeff3493147ee33d36c82937fb570230200e6ea50c /res/values
parentebfb8f3b3916d7735e67562931b571dacb86a6d9 (diff)
downloadunexpected-keyboard-7a3312fd01ef2bf48b146677766f7ea4b036b7df.tar.gz
unexpected-keyboard-7a3312fd01ef2bf48b146677766f7ea4b036b7df.zip
Add the accents preference
This replaces the "disable accent keys" checkbox. The default should work for anyone: Accents will be hidden unless the user has the french language installed. The value "show every accents" is useful for versions of android that don't have subtypes.
Diffstat (limited to 'res/values')
-rw-r--r--res/values/arrays.xml15
-rw-r--r--res/values/strings.xml9
2 files changed, 22 insertions, 2 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index c6e2139..7e8a9bf 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -5,4 +5,19 @@
<item>azerty</item>
<item>qwerty</item>
</string-array>
+
+ <string name="pref_accents_default">1</string>
+
+ <string-array name="pref_accents_entries">
+ <item>@string/pref_accents_e_all_installed</item>
+ <item>@string/pref_accents_e_selected</item>
+ <item>@string/pref_accents_e_all</item>
+ <item>@string/pref_accents_e_none</item>
+ </string-array>
+ <string-array name="pref_accents_values">
+ <item>1</item>
+ <item>2</item>
+ <item>3</item>
+ <item>4</item>
+ </string-array>
</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 04c3b57..a15fc5b 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -16,8 +16,13 @@
<item>Azerty</item>
<item>Qwerty</item>
</string-array>
- <string name="pref_disable_accent_keys_title">Toggle accent keys</string>
- <string name="pref_disable_accent_keys_summary">Whether to remove the accent keys from the keyboard</string>
+
+ <string name="pref_accents_title">Accents</string>
+ <string name="pref_accents_summary">%s</string>
+ <string name="pref_accents_e_all_installed">Show accents for all the installed languages</string>
+ <string name="pref_accents_e_selected">Show accents for the selected language</string>
+ <string name="pref_accents_e_all">Show every accents</string>
+ <string name="pref_accents_e_none">Hide accents</string>
<string name="pref_category_typing">Typing</string>
<string name="pref_preci_title">Precision</string>