From: terencehill Date: Sun, 21 Apr 2019 16:02:18 +0000 (+0200) Subject: Make "SHIFT+ESC" translatable X-Git-Tag: xonotic-v0.8.5~1533^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b367476885d2973b069edb7319187b681e249c52;p=xonotic%2Fxonotic-data.pk3dir.git Make "SHIFT+ESC" translatable --- diff --git a/qcsrc/menu/xonotic/keybinder.qc b/qcsrc/menu/xonotic/keybinder.qc index ec7792c48..7f6424bfc 100644 --- a/qcsrc/menu/xonotic/keybinder.qc +++ b/qcsrc/menu/xonotic/keybinder.qc @@ -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();