Don't even try to translate keys if game isn't translated
authorterencehill <piuntn@gmail.com>
Mon, 9 Apr 2018 14:24:22 +0000 (16:24 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 9 Apr 2018 14:24:22 +0000 (16:24 +0200)
qcsrc/common/util.qc

index cb06ed9..fcbf74a 100644 (file)
@@ -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");