Add context to some locales

This commit is contained in:
Jordy Ruiz 2018-12-05 17:57:21 +01:00
parent 834a433ca8
commit 6c60a2cc50
4 changed files with 9 additions and 9 deletions

View file

@ -890,7 +890,7 @@ void CMenus::RenderServerbrowserOverlay()
RenderTools()->DrawUIRect(&View, vec4(1.0f, 1.0f, 1.0f, 0.75f), CUI::CORNER_ALL, 6.0f); RenderTools()->DrawUIRect(&View, vec4(1.0f, 1.0f, 1.0f, 0.75f), CUI::CORNER_ALL, 6.0f);
View.y += 2.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); TextRender()->TextColor(1.0f, 1.0f, 1.0f, 1.0f);

View file

@ -1021,11 +1021,11 @@ void CMenus::RenderSettingsGeneral(CUIRect MainView)
Button.VSplitLeft(119.0f, &Button, 0); Button.VSplitLeft(119.0f, &Button, 0);
if(g_Config.m_ClFilterchat == 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) 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) 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; static CButtonContainer s_ButtonFilterchat;
if(DoButton_Menu(&s_ButtonFilterchat, aBuf, 0, &Button)) if(DoButton_Menu(&s_ButtonFilterchat, aBuf, 0, &Button))
g_Config.m_ClFilterchat = (g_Config.m_ClFilterchat + 1) % 3; g_Config.m_ClFilterchat = (g_Config.m_ClFilterchat + 1) % 3;

View file

@ -14,7 +14,7 @@
#include "skins.h" #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"}; 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, char *const CSkins::ms_apSkinVariables[NUM_SKINPARTS] = {g_Config.m_PlayerSkinBody, g_Config.m_PlayerSkinMarking, g_Config.m_PlayerSkinDecoration,

View file

@ -95,14 +95,14 @@ const char *CGameClient::GetTeamName(int Team, bool Teamplay) const
if(Teamplay) if(Teamplay)
{ {
if(Team == TEAM_RED) if(Team == TEAM_RED)
return Localize("red team"); return Localize("red team", "'X joined the <red team>' (server message)");
else if(Team == TEAM_BLUE) else if(Team == TEAM_BLUE)
return Localize("blue team"); return Localize("blue team", "'X joined the <blue team>' (server message)");
} }
else if(Team == 0) else if(Team == 0)
return Localize("game"); return Localize("game", "'X joined the <game>' (server message)");
return Localize("spectators"); return Localize("spectators", "'X joined the <spectators>' (server message)");
} }
enum enum