]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make "SHIFT+ESC" translatable
authorterencehill <piuntn@gmail.com>
Sun, 21 Apr 2019 16:02:18 +0000 (18:02 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 22 Apr 2019 07:28:42 +0000 (09:28 +0200)
qcsrc/menu/xonotic/keybinder.qc

index ec7792c482446f6b50c8a977766d6c89b33eaa51..7f6424bfce34156201ef4bdcca93befc48813ef8 100644 (file)
@@ -106,8 +106,7 @@ void KeyBinds_Read()
        // display the hardcoded shortcut to open the console as it works for all
        // non-English keyboard layouts, unlike default keys (` and ~)
        KEYBIND_DEF("toggleconsole"                         , _("enter console"));
-               // TODO make it translatable together with all key names
-               KEYBIND_SPECIAL_DEF("SHIFT+ESC");
+               KEYBIND_SPECIAL_DEF(strcat(translate_key("SHIFT"), "+", translate_key("ESCAPE")));
        KEYBIND_DEF("disconnect"                            , _("disconnect"));
        KEYBIND_DEF("menu_showquitdialog"                   , _("quit"));
        KEYBIND_EMPTY_LINE();