From e46d0084ebdbe77db90696288518b9951516c6d3 Mon Sep 17 00:00:00 2001 From: Jordy Ruiz Date: Tue, 4 Dec 2018 09:12:09 +0100 Subject: [PATCH] Add some more localization context for the menus --- src/game/client/components/menus_browser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game/client/components/menus_browser.cpp b/src/game/client/components/menus_browser.cpp index 55f43cbe4..cb4184c34 100644 --- a/src/game/client/components/menus_browser.cpp +++ b/src/game/client/components/menus_browser.cpp @@ -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) {