mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Add context to some locales
This commit is contained in:
parent
834a433ca8
commit
6c60a2cc50
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 <red team>' (server message)");
|
||||
else if(Team == TEAM_BLUE)
|
||||
return Localize("blue team");
|
||||
return Localize("blue team", "'X joined the <blue team>' (server message)");
|
||||
}
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue