From ae791ab2929c1b71d4af2831416aefccafc8e977 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sat, 5 Aug 2023 16:45:57 +0200 Subject: Translatable key descriptions Key descriptions are shown in the "extra keys" option and can now be translated. --- srcs/juloo.keyboard2/KeyValue.java | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'srcs/juloo.keyboard2/KeyValue.java') 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 keys_descr = new HashMap(); - - /* 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) { -- cgit v1.2.3