]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 cb06ed9ead14dc4e04a359eebf0739d577828260..fcbf74a34738ba3535e9d3b7f75a36acdb6ca04d 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");