diff options
| author | Jules Aguillon | 2023-08-05 16:45:57 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2023-08-05 16:45:57 +0200 |
| commit | ae791ab2929c1b71d4af2831416aefccafc8e977 (patch) | |
| tree | 48860d82e5c18623d4de193b95c77ec78f99cfd5 /srcs/juloo.keyboard2/KeyValue.java | |
| parent | 8b9505356629f81340090cee4f8f1f0bb9c399be (diff) | |
| download | unexpected-keyboard-ae791ab2929c1b71d4af2831416aefccafc8e977.tar.gz unexpected-keyboard-ae791ab2929c1b71d4af2831416aefccafc8e977.zip | |
Translatable key descriptions
Key descriptions are shown in the "extra keys" option and can now be
translated.
Diffstat (limited to 'srcs/juloo.keyboard2/KeyValue.java')
| -rw-r--r-- | srcs/juloo.keyboard2/KeyValue.java | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index f20c53e..a394240 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -448,26 +448,6 @@ final class KeyValue } } - static final HashMap<String, String> keys_descr = new HashMap<String, String>(); - - /* Some keys have a description attached. Return [null] if otherwise. */ - public static String getKeyDescription(String name) - { - return keys_descr.get(name); - } - - static void addKeyDescr(String name, String descr) - { - keys_descr.put(name, descr); - } - - static { - /* Keys description is shown in the settings. */ - addKeyDescr("capslock", "Caps lock"); - addKeyDescr("switch_greekmath", "Greek & math symbols"); - addKeyDescr("voice_typing", "Voice typing"); - } - // Substitute for [assert], which has no effect on Android. private static void check(boolean b) { |
