]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Team names: #define. Fixes #1612
authorTimePath <andrew.hardaker1995@gmail.com>
Mon, 21 Dec 2015 01:47:19 +0000 (12:47 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Mon, 21 Dec 2015 01:47:19 +0000 (12:47 +1100)
qcsrc/common/teams.qh

index 9fc5bdb18e631c1164ba7c582211336a4eb62764..f75ae1f02fbc8b680854c4c43d16c54f45d6ccc7 100644 (file)
@@ -26,12 +26,13 @@ const string COL_TEAM_1 = "^1";
 const string COL_TEAM_2 = "^4";
 const string COL_TEAM_3 = "^3";
 const string COL_TEAM_4 = "^6";
-const string NAME_TEAM_1 = _("Red");
-const string NAME_TEAM_2 = _("Blue");
-const string NAME_TEAM_3 = _("Yellow");
-const string NAME_TEAM_4 = _("Pink");
-const string NAME_TEAM = _("Team");
-const string NAME_NEUTRAL = _("Neutral");
+// must be #defined, const globals drop the translation attribute
+#define NAME_TEAM_1 _("Red")
+#define NAME_TEAM_2 _("Blue")
+#define NAME_TEAM_3 _("Yellow")
+#define NAME_TEAM_4 _("Pink")
+#define NAME_TEAM _("Team")
+#define NAME_NEUTRAL _("Neutral")
 
 // used for replacement in filenames or such where the name CANNOT be allowed to be translated
 const string STATIC_NAME_TEAM_1 = "Red";