From 6c60a2cc50a9bef20c500ba9e2da12571cbe814e Mon Sep 17 00:00:00 2001 From: Jordy Ruiz Date: Wed, 5 Dec 2018 17:57:21 +0100 Subject: [PATCH] Add context to some locales --- src/game/client/components/menus_browser.cpp | 2 +- src/game/client/components/menus_settings.cpp | 6 +++--- src/game/client/components/skins.cpp | 2 +- src/game/client/gameclient.cpp | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/game/client/components/menus_browser.cpp b/src/game/client/components/menus_browser.cpp index cb4184c34..719ff08d4 100644 --- a/src/game/client/components/menus_browser.cpp +++ b/src/game/client/components/menus_browser.cpp @@ -890,7 +890,7 @@ void CMenus::RenderServerbrowserOverlay() RenderTools()->DrawUIRect(&View, vec4(1.0f, 1.0f, 1.0f, 0.75f), CUI::CORNER_ALL, 6.0f); View.y += 2.0f; - UI()->DoLabel(&View, Localize("no players"), View.h*ms_FontmodHeight*0.8f, CUI::ALIGN_CENTER); + UI()->DoLabel(&View, Localize("no players", "server browser message"), View.h*ms_FontmodHeight*0.8f, CUI::ALIGN_CENTER); } TextRender()->TextColor(1.0f, 1.0f, 1.0f, 1.0f); diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp index 483d7f9b2..e2eae686c 100644 --- a/src/game/client/components/menus_settings.cpp +++ b/src/game/client/components/menus_settings.cpp @@ -1021,11 +1021,11 @@ void CMenus::RenderSettingsGeneral(CUIRect MainView) Button.VSplitLeft(119.0f, &Button, 0); if(g_Config.m_ClFilterchat == 0) - str_format(aBuf, sizeof(aBuf), Localize("everyone")); + str_format(aBuf, sizeof(aBuf), Localize("everyone", "Show chat messages from:")); else if(g_Config.m_ClFilterchat == 1) - str_format(aBuf, sizeof(aBuf), Localize("friends only")); + str_format(aBuf, sizeof(aBuf), Localize("friends only", "Show chat messages from:")); else if(g_Config.m_ClFilterchat == 2) - str_format(aBuf, sizeof(aBuf), Localize("no one")); + str_format(aBuf, sizeof(aBuf), Localize("no one", "Show chat messages from:")); static CButtonContainer s_ButtonFilterchat; if(DoButton_Menu(&s_ButtonFilterchat, aBuf, 0, &Button)) g_Config.m_ClFilterchat = (g_Config.m_ClFilterchat + 1) % 3; diff --git a/src/game/client/components/skins.cpp b/src/game/client/components/skins.cpp index 7864cb1f4..7b8554d26 100644 --- a/src/game/client/components/skins.cpp +++ b/src/game/client/components/skins.cpp @@ -14,7 +14,7 @@ #include "skins.h" -const char * const CSkins::ms_apSkinPartNames[NUM_SKINPARTS] = {"body", "marking", "decoration", "hands", "feet", "eyes"}; /* Localize("body");Localize("marking");Localize("decoration");Localize("hands");Localize("feet");Localize("eyes"); */ +const char * const CSkins::ms_apSkinPartNames[NUM_SKINPARTS] = {"body", "marking", "decoration", "hands", "feet", "eyes"}; /* Localize("body","skins");Localize("marking","skins");Localize("decoration","skins");Localize("hands","skins");Localize("feet","skins");Localize("eyes","skins"); */ const char * const CSkins::ms_apColorComponents[NUM_COLOR_COMPONENTS] = {"hue", "sat", "lgt", "alp"}; char *const CSkins::ms_apSkinVariables[NUM_SKINPARTS] = {g_Config.m_PlayerSkinBody, g_Config.m_PlayerSkinMarking, g_Config.m_PlayerSkinDecoration, diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index c89bc1547..952710541 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -95,14 +95,14 @@ const char *CGameClient::GetTeamName(int Team, bool Teamplay) const if(Teamplay) { if(Team == TEAM_RED) - return Localize("red team"); + return Localize("red team", "'X joined the ' (server message)"); else if(Team == TEAM_BLUE) - return Localize("blue team"); + return Localize("blue team", "'X joined the ' (server message)"); } else if(Team == 0) - return Localize("game"); + return Localize("game", "'X joined the ' (server message)"); - return Localize("spectators"); + return Localize("spectators", "'X joined the ' (server message)"); } enum