mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
fixed english localisation bug
This commit is contained in:
parent
262b566c94
commit
651cd062e6
|
@ -56,12 +56,12 @@ void CMenus::RenderServerbrowserServerList(CUIRect View)
|
||||||
{COL_FLAG_LOCK, -1, " ", -1, 14.0f, 0, {0}, {0}},
|
{COL_FLAG_LOCK, -1, " ", -1, 14.0f, 0, {0}, {0}},
|
||||||
{COL_FLAG_PURE, -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_FLAG_FAV, -1, " ", -1, 14.0f, 0, {0}, {0}},
|
||||||
{COL_NAME, IServerBrowser::SORT_NAME, Localize("Name"), 0, 300.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, Localize("Type"), 1, 50.0f, 0, {0}, {0}},
|
{COL_GAMETYPE, IServerBrowser::SORT_GAMETYPE, "Type", 1, 50.0f, 0, {0}, {0}},
|
||||||
{COL_MAP, IServerBrowser::SORT_MAP, Localize("Map"), 1, 100.0f, 0, {0}, {0}},
|
{COL_MAP, IServerBrowser::SORT_MAP, "Map", 1, 100.0f, 0, {0}, {0}},
|
||||||
{COL_PLAYERS, IServerBrowser::SORT_NUMPLAYERS, Localize("Players"), 1, 60.0f, 0, {0}, {0}},
|
{COL_PLAYERS, IServerBrowser::SORT_NUMPLAYERS, "Players", 1, 60.0f, 0, {0}, {0}},
|
||||||
{-1, -1, " ", 1, 10.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);
|
int NumCols = sizeof(s_aCols)/sizeof(CColumn);
|
||||||
|
@ -486,9 +486,9 @@ void CMenus::RenderServerbrowserServerDetail(CUIRect View)
|
||||||
{
|
{
|
||||||
CUIRect Row;
|
CUIRect Row;
|
||||||
static CLocConstString s_aLabels[] = {
|
static CLocConstString s_aLabels[] = {
|
||||||
Localize("Version"),
|
"Version", // Localize - these strings are localized within CLocConstString
|
||||||
Localize("Game type"),
|
"Game type",
|
||||||
Localize("Ping")};
|
"Ping"};
|
||||||
|
|
||||||
CUIRect LeftColumn;
|
CUIRect LeftColumn;
|
||||||
CUIRect RightColumn;
|
CUIRect RightColumn;
|
||||||
|
|
|
@ -286,28 +286,28 @@ typedef struct
|
||||||
static CKeyInfo gs_aKeys[] =
|
static CKeyInfo gs_aKeys[] =
|
||||||
{
|
{
|
||||||
// we need to do localize so the scripts can pickup the string
|
// we need to do localize so the scripts can pickup the string
|
||||||
{ Localize("Move left"), "+left", 0},
|
{ "Move left", "+left", 0}, // Localize - these strings are localized within CLocConstString
|
||||||
{ Localize("Move right"), "+right", 0 },
|
{ "Move right", "+right", 0 },
|
||||||
{ Localize("Jump"), "+jump", 0 },
|
{ "Jump", "+jump", 0 },
|
||||||
{ Localize("Fire"), "+fire", 0 },
|
{ "Fire", "+fire", 0 },
|
||||||
{ Localize("Hook"), "+hook", 0 },
|
{ "Hook", "+hook", 0 },
|
||||||
{ Localize("Hammer"), "+weapon1", 0 },
|
{ "Hammer", "+weapon1", 0 },
|
||||||
{ Localize("Pistol"), "+weapon2", 0 },
|
{ "Pistol", "+weapon2", 0 },
|
||||||
{ Localize("Shotgun"), "+weapon3", 0 },
|
{ "Shotgun", "+weapon3", 0 },
|
||||||
{ Localize("Grenade"), "+weapon4", 0 },
|
{ "Grenade", "+weapon4", 0 },
|
||||||
{ Localize("Rifle"), "+weapon5", 0 },
|
{ "Rifle", "+weapon5", 0 },
|
||||||
{ Localize("Next weapon"), "+nextweapon", 0 },
|
{ "Next weapon", "+nextweapon", 0 },
|
||||||
{ Localize("Prev. weapon"), "+prevweapon", 0 },
|
{ "Prev. weapon", "+prevweapon", 0 },
|
||||||
{ Localize("Vote yes"), "vote yes", 0 },
|
{ "Vote yes", "vote yes", 0 },
|
||||||
{ Localize("Vote no"), "vote no", 0 },
|
{ "Vote no", "vote no", 0 },
|
||||||
{ Localize("Chat"), "chat all", 0 },
|
{ "Chat", "chat all", 0 },
|
||||||
{ Localize("Team chat"), "chat team", 0 },
|
{ "Team chat", "chat team", 0 },
|
||||||
{ Localize("Show chat"), "+show_chat", 0 },
|
{ "Show chat", "+show_chat", 0 },
|
||||||
{ Localize("Emoticon"), "+emote", 0 },
|
{ "Emoticon", "+emote", 0 },
|
||||||
{ Localize("Console"), "toggle_local_console", 0 },
|
{ "Console", "toggle_local_console", 0 },
|
||||||
{ Localize("Remote console"), "toggle_remote_console", 0 },
|
{ "Remote console", "toggle_remote_console", 0 },
|
||||||
{ Localize("Screenshot"), "screenshot", 0 },
|
{ "Screenshot", "screenshot", 0 },
|
||||||
{ Localize("Scoreboard"), "+scoreboard", 0 },
|
{ "Scoreboard", "+scoreboard", 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
const int g_KeyCount = sizeof(gs_aKeys) / sizeof(CKeyInfo);
|
const int g_KeyCount = sizeof(gs_aKeys) / sizeof(CKeyInfo);
|
||||||
|
|
Loading…
Reference in a new issue