Translate "Name" and "Time" header in ghost menu

This commit is contained in:
Freddie Wang 2021-06-11 13:31:30 +08:00 committed by GitHub
parent 97ab2c6c01
commit 32b8c8c192
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1007,8 +1007,8 @@ void CMenus::RenderGhost(CUIRect MainView)
static CColumn s_aCols[] = {
{-1, " ", 2.0f, {0}, {0}},
{COL_ACTIVE, " ", 30.0f, {0}, {0}},
{COL_NAME, "Name", 300.0f, {0}, {0}},
{COL_TIME, "Time", 200.0f, {0}, {0}},
{COL_NAME, "Name", 300.0f, {0}, {0}}, // Localize("Name")
{COL_TIME, "Time", 200.0f, {0}, {0}}, // Localize("Time")
};
int NumCols = sizeof(s_aCols) / sizeof(CColumn);
@ -1024,7 +1024,7 @@ void CMenus::RenderGhost(CUIRect MainView)
// do headers
for(int i = 0; i < NumCols; i++)
DoButton_GridHeader(s_aCols[i].m_Caption, s_aCols[i].m_Caption, 0, &s_aCols[i].m_Rect);
DoButton_GridHeader(s_aCols[i].m_Caption, Localize(s_aCols[i].m_Caption), 0, &s_aCols[i].m_Rect);
RenderTools()->DrawUIRect(&View, ColorRGBA(0, 0, 0, 0.15f), 0, 0);