]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make translatable "<KEY NOT FOUND>" and "<UNKNOWN KEYNUM>"
authorterencehill <piuntn@gmail.com>
Mon, 22 Apr 2019 08:27:18 +0000 (10:27 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 22 Apr 2019 08:27:18 +0000 (10:27 +0200)
qcsrc/common/util.qc

index af7bc76cace610ce982cb3a30896d0bfee015370..c2b9138c6b5b45d0d7d018284a31cb3a161c97f8 100644 (file)
@@ -1442,6 +1442,12 @@ string translate_key(string key)
 {
        if (prvm_language == "en") return key;
 
+       if (substring(key, 0, 1) == "<")
+       {
+               if (key == "<KEY NOT FOUND>") return _("<KEY NOT FOUND>");
+               if (key == "<UNKNOWN KEYNUM>") return _("<UNKNOWN KEYNUM>");
+       }
+
        switch(key)
        {
                case "TAB":                             return _("TAB");