mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Merge pull request #1953 from Dune-jr/fix-localize-kd
Remove scoreboard one-letter locales and add context to server difficulty locales
This commit is contained in:
commit
a6d91aafeb
|
@ -1841,7 +1841,7 @@ void CMenus::RenderDetailInfo(CUIRect View, const CServerInfo *pInfo)
|
|||
if(pInfo)
|
||||
{
|
||||
CUIRect Row;
|
||||
// Localize("Map"); Localize("Game type"); Localize("Version"); Localize("Casual"); Localize("Normal"); Localize("Difficulty"); Localize("Competitive");
|
||||
// Localize("Map"); Localize("Game type"); Localize("Version"); Localize("Casual", "Server difficulty"); Localize("Normal", "Server difficulty"); Localize("Competitive", "Server difficulty"); Localize("Difficulty");
|
||||
static CLocConstString s_aLabels[] = {
|
||||
"Map",
|
||||
"Game type",
|
||||
|
|
|
@ -442,8 +442,8 @@ void CMenus::RenderServerInfo(CUIRect MainView)
|
|||
|
||||
GameInfo.HSplitTop(ButtonHeight, &Label, &GameInfo);
|
||||
Label.y += 2.0f;
|
||||
str_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Difficulty"), (CurrentServerInfo.m_ServerLevel == 0) ? Localize("Casual") :
|
||||
(CurrentServerInfo.m_ServerLevel == 1 ? Localize("Normal") : Localize("Competitive")));
|
||||
str_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Difficulty"), (CurrentServerInfo.m_ServerLevel == 0) ? Localize("Casual", "Server difficulty") :
|
||||
(CurrentServerInfo.m_ServerLevel == 1 ? Localize("Normal", "Server difficulty") : Localize("Competitive", "Server difficulty")));
|
||||
UI()->DoLabel(&Label, aBuf, ButtonHeight*ms_FontmodHeight*0.8f, CUI::ALIGN_LEFT);
|
||||
|
||||
GameInfo.HSplitTop(ButtonHeight, &Label, &GameInfo);
|
||||
|
|
|
@ -321,10 +321,10 @@ float CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const c
|
|||
|
||||
TextRender()->TextColor(1.0f, 1.0f, 1.0f, 0.5f);
|
||||
tw = TextRender()->TextWidth(0, HeadlineFontsize, "K", -1);
|
||||
TextRender()->Text(0, KillOffset+KillLength/2-tw/2, y+Spacing, HeadlineFontsize, Localize("K"), -1);
|
||||
TextRender()->Text(0, KillOffset+KillLength/2-tw/2, y+Spacing, HeadlineFontsize, "K", -1);
|
||||
|
||||
tw = TextRender()->TextWidth(0, HeadlineFontsize, "D", -1);
|
||||
TextRender()->Text(0, DeathOffset+DeathLength/2-tw/2, y+Spacing, HeadlineFontsize, Localize("D"), -1);
|
||||
TextRender()->Text(0, DeathOffset+DeathLength/2-tw/2, y+Spacing, HeadlineFontsize, "D", -1);
|
||||
|
||||
TextRender()->TextColor(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
tw = TextRender()->TextWidth(0, HeadlineFontsize, Localize("Score"), -1);
|
||||
|
|
Loading…
Reference in a new issue