From aaabdf270c8b307986ba0025fd45aff88dd4c56c Mon Sep 17 00:00:00 2001 From: TimePath Date: Mon, 21 Dec 2015 12:47:19 +1100 Subject: [PATCH] Team names: #define. Fixes #1612 --- qcsrc/common/teams.qh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/qcsrc/common/teams.qh b/qcsrc/common/teams.qh index 9fc5bdb18..f75ae1f02 100644 --- a/qcsrc/common/teams.qh +++ b/qcsrc/common/teams.qh @@ -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"; -- 2.39.2