diff options
| author | Jules Aguillon | 2022-11-26 22:30:45 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2022-11-26 22:30:45 +0100 |
| commit | e745c812691462380695da2275757e3f29bbbdb2 (patch) | |
| tree | 1a6c9e62fffa6085455b9e2323533927a01a292d /res/values | |
| parent | 09d984a1ab597cceab8a416b3f3cbf60bc1a5525 (diff) | |
| download | unexpected-keyboard-e745c812691462380695da2275757e3f29bbbdb2.tar.gz unexpected-keyboard-e745c812691462380695da2275757e3f29bbbdb2.zip | |
Allow using a custom layout
Add an option for specifying an XML layout description as a string.
The option is a bit rough at the moment:
- No documentation, users have to be aware of the keyboard's code to use
this option.
- No error are shown, the layout will fallback to qwerty on error.
Diffstat (limited to 'res/values')
| -rw-r--r-- | res/values/arrays.xml | 2 | ||||
| -rw-r--r-- | res/values/strings.xml | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml index 17c4bd9..524da3d 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -26,6 +26,7 @@ <item>jcuken_ua</item> <item>bangla</item> <item>hindi</item> + <item>custom</item> </string-array> <string-array name="pref_layout_entries"> <item>None</item> @@ -53,6 +54,7 @@ <item>ЙЦУКЕН (Українська)</item> <item>বাংলা</item> <item>हिन्दी</item> + <item>@string/pref_layout_e_custom</item> </string-array> <string-array name="pref_accents_entries"> <item>@string/pref_accents_e_all_installed</item> diff --git a/res/values/strings.xml b/res/values/strings.xml index 63c55ab..a565b09 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -7,6 +7,7 @@ <string name="pref_label_brightness">Adjust label brightness</string> <string name="pref_layout_title">Change keyboard layout</string> <string name="pref_layout_e_system">System settings</string> + <string name="pref_layout_e_custom">Custom layout</string> <string name="pref_accents_title">Accents</string> <string name="pref_accents_e_all_installed">Show accents for all installed languages</string> <string name="pref_accents_e_selected">Only show accents for the selected language</string> @@ -51,6 +52,9 @@ <string name="pref_swipe_dist_e_very_far">Very far</string> <string name="pref_key_horizontal_space">Horizontal spacing between the keys</string> <string name="pref_key_vertical_space">Vertical spacing between the keys</string> + <string name="pref_category_advanced">Advanced</string> + <string name="pref_custom_layout_title">Custom layout</string> + <string name="pref_custom_layout_summary">See the source code. This option is not meant to be used.</string> <string name="key_action_next">Next</string> <string name="key_action_done">Done</string> <string name="key_action_go">Go</string> |
