}
// useful to Translate a string inside the Command
-#define QUICKMENU_ENTRY_TC(title,command,text,translated_text) \
+#define QUICKMENU_ENTRY_TC(title,command,text,translated_text) {\
if(prvm_language == "en") \
QUICKMENU_ENTRY(title, sprintf(command, text)) \
else if(!autocvar_hud_panel_quickmenu_translatecommands || translated_text == text) \
QUICKMENU_ENTRY(strcat("(en)", title), sprintf(command, text)) \
else \
- QUICKMENU_ENTRY(strcat("(", prvm_language, ")", title), sprintf(command, translated_text))
+ QUICKMENU_ENTRY(strcat("(", prvm_language, ")", title), sprintf(command, translated_text)) \
+}
void HUD_QuickMenu_Load_DefaultEntries()
{
QUICKMENU_ENTRY(CTX(_("QMCMD^Wall collision off")), "-use")
QUICKMENU_ENTRY(CTX(_("QMCMD^Wall collision on")), "+use")
QUICKMENU_SMENU(CTX(_("QMCMD^Observer camera")))
-
+
QUICKMENU_ENTRY(CTX(_("QMCMD^toggle fullscreen")), "toggle vid_fullscreen; vid_restart")
+ if(prvm_language != "en")
+ QUICKMENU_ENTRY(CTX(_("QMCMD^Translate chat messages on/off")), "toggle hud_panel_quickmenu_translatecommands")
QUICKMENU_SMENU(CTX(_("QMCMD^Settings")))
QUICKMENU_SMENU(CTX(_("QMCMD^Call a vote")))