From: terencehill Date: Mon, 9 Apr 2018 14:24:22 +0000 (+0200) Subject: Don't even try to translate keys if game isn't translated X-Git-Tag: xonotic-v0.8.5~1533^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=05d2779856eda44ed6c8779ab55380fa006cfcb4;p=xonotic%2Fxonotic-data.pk3dir.git Don't even try to translate keys if game isn't translated --- diff --git a/qcsrc/common/util.qc b/qcsrc/common/util.qc index cb06ed9ea..fcbf74a34 100644 --- a/qcsrc/common/util.qc +++ b/qcsrc/common/util.qc @@ -1308,6 +1308,8 @@ float get_model_parameters(string m, float sk) string translate_key(string key) { + if (prvm_language == "en") return key; + switch(key) { case "TAB": return _("TAB");