Add some more localization context for the menus

This commit is contained in:
Jordy Ruiz 2018-12-04 09:12:09 +01:00
parent c274925af7
commit e46d0084eb

View file

@ -1456,9 +1456,9 @@ void CMenus::RenderServerbrowserFriendTab(CUIRect View)
Rect.HSplitTop(ms_ListheaderHeight, &Button, &Rect);
Button.VSplitLeft(2.0f, 0, &Button);
if(m_lFriendList[i][f].m_IsPlayer)
str_format(aBuf, sizeof(aBuf), Localize("Playing '%s' on '%s'"), m_lFriendList[i][f].m_pServerInfo->m_aGameType, m_lFriendList[i][f].m_pServerInfo->m_aMap);
str_format(aBuf, sizeof(aBuf), Localize("Playing '%s' on '%s'", "Playing '(gametype)' on '(map)'"), m_lFriendList[i][f].m_pServerInfo->m_aGameType, m_lFriendList[i][f].m_pServerInfo->m_aMap);
else
str_format(aBuf, sizeof(aBuf), Localize("Watching '%s' on '%s'"), m_lFriendList[i][f].m_pServerInfo->m_aGameType, m_lFriendList[i][f].m_pServerInfo->m_aMap);
str_format(aBuf, sizeof(aBuf), Localize("Watching '%s' on '%s'", "Watching '(gametype)' on '(map)'"), m_lFriendList[i][f].m_pServerInfo->m_aGameType, m_lFriendList[i][f].m_pServerInfo->m_aMap);
Button.HMargin(2.0f, &Button);
UI()->DoLabelScaled(&Button, aBuf, FontSize - 2, CUI::ALIGN_LEFT);
}
@ -1476,7 +1476,7 @@ void CMenus::RenderServerbrowserFriendTab(CUIRect View)
Button.Margin((Button.h - ms_ListheaderHeight + 2.0f) / 2, &Button);
RenderTools()->DrawUIRect(&Button, vec4(1.0f, 1.0f, 1.0f, 0.15f), CUI::CORNER_ALL, 4.0f);
Label.HMargin(2.0f, &Label);
UI()->DoLabelScaled(&Button, Localize("Join"), FontSize, CUI::ALIGN_CENTER);
UI()->DoLabelScaled(&Button, Localize("Join", "Join a server"), FontSize, CUI::ALIGN_CENTER);
if(UI()->MouseInside(&Button) && Input()->KeyPress(KEY_MOUSE_1)) // todo: fix me
{
str_copy(g_Config.m_UiServerAddress, m_lFriendList[i][f].m_pServerInfo->m_aAddress, sizeof(g_Config.m_UiServerAddress));
@ -1729,7 +1729,7 @@ void CMenus::RenderServerbrowserFilterTab(CUIRect View)
Icon.VSplitLeft(10.0f, 0, &Icon);
Icon.VSplitLeft(40.0f, &Button, 0);
static CButtonContainer s_ClearGametypes;
if(DoButton_MenuTabTop(&s_ClearGametypes, Localize("Clear"), false, &Button))
if(DoButton_MenuTabTop(&s_ClearGametypes, Localize("Clear", "clear gametype filters"), false, &Button))
{
for(int i = 0; i < CServerFilterInfo::MAX_GAMETYPES; ++i)
{