From b367476885d2973b069edb7319187b681e249c52 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 21 Apr 2019 18:02:18 +0200 Subject: [PATCH] Make "SHIFT+ESC" translatable --- qcsrc/menu/xonotic/keybinder.qc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); -- 2.39.2