[colobot] 66/100: Make code battle start button header translatable
Didier Raboud
odyx at moszumanska.debian.org
Thu Jun 1 18:10:20 UTC 2017
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch debian/master
in repository colobot.
commit 681d5203e5c407c02e8a0bb1595396e865018a5f
Author: krzys-h <krzys_h at interia.pl>
Date: Fri May 19 21:23:14 2017 +0200
Make code battle start button header translatable
---
po/colobot.pot | 3 +++
po/de.po | 3 +++
po/fr.po | 4 ++++
po/pl.po | 3 +++
po/ru.po | 4 ++++
src/common/event.h | 2 ++
src/common/restext.cpp | 2 ++
src/level/robotmain.cpp | 4 +++-
8 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/po/colobot.pot b/po/colobot.pot
index 5a04df8..4aee2bc 100644
--- a/po/colobot.pot
+++ b/po/colobot.pot
@@ -270,6 +270,9 @@ msgstr ""
msgid "%s: %d pts"
msgstr ""
+msgid "Code battle"
+msgstr ""
+
msgid "Cancel"
msgstr ""
diff --git a/po/de.po b/po/de.po
index 8b1be9f..392ff91 100644
--- a/po/de.po
+++ b/po/de.po
@@ -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 ""
diff --git a/po/fr.po b/po/fr.po
index ea65fcb..2de5e5a 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -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"
diff --git a/po/pl.po b/po/pl.po
index 699a428..2995e51 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -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"
diff --git a/po/ru.po b/po/ru.po
index 531a06b..b460b77 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -388,6 +388,10 @@ msgstr "Закрыть"
msgid "Closing bracket missing"
msgstr "Закрывающая скобка отсутствует"
+#, fuzzy
+msgid "Code battle"
+msgstr "Битвы роботов"
+
msgid "Code battles"
msgstr "Битвы роботов"
diff --git a/src/common/event.h b/src/common/event.h
index ba9a905..27ab114 100644
--- a/src/common/event.h
+++ b/src/common/event.h
@@ -187,6 +187,8 @@ enum EventType
EVENT_LOADING = 120,
+ EVENT_LABEL_CODE_BATTLE = 121,
+
EVENT_SCOREBOARD = 130,
EVENT_SCOREBOARD_MAX = 169,
diff --git a/src/common/restext.cpp b/src/common/restext.cpp
index 0eec9f7..87812d6 100644
--- a/src/common/restext.cpp
+++ b/src/common/restext.cpp
@@ -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");
diff --git a/src/level/robotmain.cpp b/src/level/robotmain.cpp
index 3cd13e1..4bcec60 100644
--- a/src/level/robotmain.cpp
+++ b/src/level/robotmain.cpp
@@ -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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git
More information about the Pkg-games-commits
mailing list