Make code battle start button header translatable

master
krzys-h 2017-05-19 21:23:14 +02:00
parent c68f5e276f
commit 681d5203e5
8 changed files with 24 additions and 1 deletions

View File

@ -270,6 +270,9 @@ msgstr ""
msgid "%s: %d pts"
msgstr ""
msgid "Code battle"
msgstr ""
msgid "Cancel"
msgstr ""

View File

@ -391,6 +391,9 @@ msgstr "Schließen"
msgid "Closing bracket missing"
msgstr "Es fehlt eine geschlossene Klammer \")\""
msgid "Code battle"
msgstr ""
msgid "Code battles"
msgstr ""

View File

@ -380,6 +380,10 @@ msgstr "Fermer"
msgid "Closing bracket missing"
msgstr "Il manque une parenthèse fermante"
#, fuzzy
msgid "Code battle"
msgstr "Batailles de code"
msgid "Code battles"
msgstr "Batailles de code"

View File

@ -382,6 +382,9 @@ msgstr "Zamknij"
msgid "Closing bracket missing"
msgstr "Brak nawiasu zamykającego"
msgid "Code battle"
msgstr "Programobitwa"
msgid "Code battles"
msgstr "Programobitwy"

View File

@ -388,6 +388,10 @@ msgstr "Закрыть"
msgid "Closing bracket missing"
msgstr "Закрывающая скобка отсутствует"
#, fuzzy
msgid "Code battle"
msgstr "Битвы роботов"
msgid "Code battles"
msgstr "Битвы роботов"

View File

@ -187,6 +187,8 @@ enum EventType
EVENT_LOADING = 120,
EVENT_LABEL_CODE_BATTLE = 121,
EVENT_SCOREBOARD = 130,
EVENT_SCOREBOARD_MAX = 169,

View File

@ -149,6 +149,8 @@ void InitializeRestext()
stringsEvent[EVENT_LABEL_CODE_BATTLE] = TR("Code battle");
stringsEvent[EVENT_BUTTON_OK] = TR("OK");
stringsEvent[EVENT_BUTTON_CANCEL] = TR("Cancel");
stringsEvent[EVENT_BUTTON_NEXT] = TR("Next");

View File

@ -5802,7 +5802,9 @@ void CRobotMain::CreateCodeBattleInterface()
ddim.y = 16.0f/480.0f;
pos.x = 540.0f/640.0f;
pos.y = 178.0f/480.0f + numTeams * textHeight;
pw->CreateLabel(pos, ddim, 0, EVENT_LABEL0, "Code battle");
std::string text;
GetResource(RES_EVENT, EVENT_LABEL_CODE_BATTLE, text);
pw->CreateLabel(pos, ddim, 0, EVENT_LABEL_CODE_BATTLE, text);
float titleBarSize = (11.0f/64.0f); // this is from the texture
ddim.x = 80.0f/640.0f;