fixed english localisation bug

This commit is contained in:
Tom Adams 2010-05-31 11:07:58 +00:00
parent 262b566c94
commit 651cd062e6
2 changed files with 30 additions and 30 deletions

View file

@ -56,12 +56,12 @@ void CMenus::RenderServerbrowserServerList(CUIRect View)
{COL_FLAG_LOCK, -1, " ", -1, 14.0f, 0, {0}, {0}},
{COL_FLAG_PURE, -1, " ", -1, 14.0f, 0, {0}, {0}},
{COL_FLAG_FAV, -1, " ", -1, 14.0f, 0, {0}, {0}},
{COL_NAME, IServerBrowser::SORT_NAME, Localize("Name"), 0, 300.0f, 0, {0}, {0}},
{COL_GAMETYPE, IServerBrowser::SORT_GAMETYPE, Localize("Type"), 1, 50.0f, 0, {0}, {0}},
{COL_MAP, IServerBrowser::SORT_MAP, Localize("Map"), 1, 100.0f, 0, {0}, {0}},
{COL_PLAYERS, IServerBrowser::SORT_NUMPLAYERS, Localize("Players"), 1, 60.0f, 0, {0}, {0}},
{COL_NAME, IServerBrowser::SORT_NAME, "Name", 0, 300.0f, 0, {0}, {0}}, // Localize - these strings are localized within CLocConstString
{COL_GAMETYPE, IServerBrowser::SORT_GAMETYPE, "Type", 1, 50.0f, 0, {0}, {0}},
{COL_MAP, IServerBrowser::SORT_MAP, "Map", 1, 100.0f, 0, {0}, {0}},
{COL_PLAYERS, IServerBrowser::SORT_NUMPLAYERS, "Players", 1, 60.0f, 0, {0}, {0}},
{-1, -1, " ", 1, 10.0f, 0, {0}, {0}},
{COL_PING, IServerBrowser::SORT_PING, Localize("Ping"), 1, 40.0f, FIXED, {0}, {0}},
{COL_PING, IServerBrowser::SORT_PING, "Ping", 1, 40.0f, FIXED, {0}, {0}},
};
int NumCols = sizeof(s_aCols)/sizeof(CColumn);
@ -486,9 +486,9 @@ void CMenus::RenderServerbrowserServerDetail(CUIRect View)
{
CUIRect Row;
static CLocConstString s_aLabels[] = {
Localize("Version"),
Localize("Game type"),
Localize("Ping")};
"Version", // Localize - these strings are localized within CLocConstString
"Game type",
"Ping"};
CUIRect LeftColumn;
CUIRect RightColumn;

View file

@ -286,28 +286,28 @@ typedef struct
static CKeyInfo gs_aKeys[] =
{
// we need to do localize so the scripts can pickup the string
{ Localize("Move left"), "+left", 0},
{ Localize("Move right"), "+right", 0 },
{ Localize("Jump"), "+jump", 0 },
{ Localize("Fire"), "+fire", 0 },
{ Localize("Hook"), "+hook", 0 },
{ Localize("Hammer"), "+weapon1", 0 },
{ Localize("Pistol"), "+weapon2", 0 },
{ Localize("Shotgun"), "+weapon3", 0 },
{ Localize("Grenade"), "+weapon4", 0 },
{ Localize("Rifle"), "+weapon5", 0 },
{ Localize("Next weapon"), "+nextweapon", 0 },
{ Localize("Prev. weapon"), "+prevweapon", 0 },
{ Localize("Vote yes"), "vote yes", 0 },
{ Localize("Vote no"), "vote no", 0 },
{ Localize("Chat"), "chat all", 0 },
{ Localize("Team chat"), "chat team", 0 },
{ Localize("Show chat"), "+show_chat", 0 },
{ Localize("Emoticon"), "+emote", 0 },
{ Localize("Console"), "toggle_local_console", 0 },
{ Localize("Remote console"), "toggle_remote_console", 0 },
{ Localize("Screenshot"), "screenshot", 0 },
{ Localize("Scoreboard"), "+scoreboard", 0 },
{ "Move left", "+left", 0}, // Localize - these strings are localized within CLocConstString
{ "Move right", "+right", 0 },
{ "Jump", "+jump", 0 },
{ "Fire", "+fire", 0 },
{ "Hook", "+hook", 0 },
{ "Hammer", "+weapon1", 0 },
{ "Pistol", "+weapon2", 0 },
{ "Shotgun", "+weapon3", 0 },
{ "Grenade", "+weapon4", 0 },
{ "Rifle", "+weapon5", 0 },
{ "Next weapon", "+nextweapon", 0 },
{ "Prev. weapon", "+prevweapon", 0 },
{ "Vote yes", "vote yes", 0 },
{ "Vote no", "vote no", 0 },
{ "Chat", "chat all", 0 },
{ "Team chat", "chat team", 0 },
{ "Show chat", "+show_chat", 0 },
{ "Emoticon", "+emote", 0 },
{ "Console", "toggle_local_console", 0 },
{ "Remote console", "toggle_remote_console", 0 },
{ "Screenshot", "screenshot", 0 },
{ "Scoreboard", "+scoreboard", 0 },
};
const int g_KeyCount = sizeof(gs_aKeys) / sizeof(CKeyInfo);