summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Zima <xhire@mujmalysvet.cz>2010-02-08 22:59:42 +0100
committerMichal Zima <xhire@mujmalysvet.cz>2010-02-08 22:59:42 +0100
commit446ee442f34bb9f8e6f52d29e3985c9025fbffd7 (patch)
treefc0c39ba0b9fd5a05d8d86ce4ffe3331e6006887
parent6d80682e084f0f51a9441f7f94ac955d7700d12d (diff)
Found one more string to be translated
More code style corrections
-rw-r--r--po/cs_CZ.po8
-rw-r--r--po/de_DE.po6
-rw-r--r--po/tuxanci.pot6
-rw-r--r--src/client/yes_no_dialog.c7
-rw-r--r--src/screen/world.c6
-rw-r--r--src/server/log.c2
6 files changed, 22 insertions, 13 deletions
diff --git a/po/cs_CZ.po b/po/cs_CZ.po
index 1952692..bc923c6 100644
--- a/po/cs_CZ.po
+++ b/po/cs_CZ.po
@@ -1,4 +1,4 @@
-# SOME DESCRIPTIVE TITLE.
+# Czech translation file of game Tuxanci.
# Copyright (C) 2010
# This file is distributed under the same license as the tuxanci package.
# Michal Zima <xhire@mujmalysvet.cz>, 2008-2010
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tuxanci\n"
"Report-Msgid-Bugs-To: team@tuxanci.org\n"
-"POT-Creation-Date: 2010-02-08 22:43+0100\n"
+"POT-Creation-Date: 2010-02-08 22:56+0100\n"
"PO-Revision-Date: 2009-12-28 16:03+0100\n"
"Last-Translator: xHire <xhire@mujmalysvet.cz>\n"
"Language-Team: \n"
@@ -357,3 +357,7 @@ msgstr "Změna zbraně:"
#: src/screen/settingKeys.c:291
msgid "Player 1"
msgstr "Hráč 1"
+
+#: src/screen/world.c:390
+msgid "Do you really want to quit the game?"
+msgstr "Opravdu chceš ukončit hru?"
diff --git a/po/de_DE.po b/po/de_DE.po
index 59acd7b..9ce5002 100644
--- a/po/de_DE.po
+++ b/po/de_DE.po
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tuxanci\n"
"Report-Msgid-Bugs-To: team@tuxanci.org\n"
-"POT-Creation-Date: 2010-02-08 22:43+0100\n"
+"POT-Creation-Date: 2010-02-08 22:56+0100\n"
"PO-Revision-Date: 2008-12-01 12:31+0100\n"
"Last-Translator: Evgeni Golov <sargentd@die-welt.net>\n"
"Language-Team: GERMAN <de@li.org>\n"
@@ -371,6 +371,10 @@ msgstr "Wechsle Waffe:"
msgid "Player 1"
msgstr "Spieler 1"
+#: src/screen/world.c:390
+msgid "Do you really want to quit the game?"
+msgstr ""
+
#~ msgid "Up"
#~ msgstr "Hoch:"
diff --git a/po/tuxanci.pot b/po/tuxanci.pot
index 6be306b..d251586 100644
--- a/po/tuxanci.pot
+++ b/po/tuxanci.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: team@tuxanci.org\n"
-"POT-Creation-Date: 2010-02-08 22:43+0100\n"
+"POT-Creation-Date: 2010-02-08 22:56+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -358,3 +358,7 @@ msgstr ""
#: src/screen/settingKeys.c:291
msgid "Player 1"
msgstr ""
+
+#: src/screen/world.c:390
+msgid "Do you really want to quit the game?"
+msgstr ""
diff --git a/src/client/yes_no_dialog.c b/src/client/yes_no_dialog.c
index 0b7f9b3..d982933 100644
--- a/src/client/yes_no_dialog.c
+++ b/src/client/yes_no_dialog.c
@@ -73,12 +73,9 @@ void yes_no_dialog_set_active(bool_t active)
{
active_dialog = active;
- if (active_dialog == TRUE)
- {
+ if (active_dialog == TRUE) {
hot_key_register(SDLK_ESCAPE, hotkey_escape);
- }
- else
- {
+ } else {
hot_key_unregister(SDLK_ESCAPE);
}
}
diff --git a/src/screen/world.c b/src/screen/world.c
index c2615c8..b1043a1 100644
--- a/src/screen/world.c
+++ b/src/screen/world.c
@@ -387,9 +387,9 @@ void dialog_no(void *p)
static void hotkey_escape()
{
- yes_no_dialog_set("Naozaj chete ukoncit hru ?", dialog_yes, dialog_no, NULL);
+ yes_no_dialog_set(_("Do you really want to quit the game?"), dialog_yes, dialog_no, NULL);
yes_no_dialog_set_active(TRUE);
- //world_do_end();
+ /*world_do_end();*/
}
void startWorld()
@@ -417,7 +417,7 @@ void startWorld()
prepareArena();
}
-static void action_analyze(space_t * space, tux_t * tux, void *p)
+static void action_analyze(space_t *space, tux_t *tux, void *p)
{
UNUSED(space);
UNUSED(p);
diff --git a/src/server/log.c b/src/server/log.c
index 7f038ce..00cde64 100644
--- a/src/server/log.c
+++ b/src/server/log.c
@@ -59,7 +59,7 @@ void log_add(int type, char *msg)
}
sprintf(str, "[%02d-%02d-%02d %02d:%02d:%02d] [%s] %s\n",
- 1900 + tm_struct->tm_year, tm_struct->tm_mon+1, tm_struct->tm_mday,
+ 1900 + tm_struct->tm_year, tm_struct->tm_mon + 1, tm_struct->tm_mday,
tm_struct->tm_hour, tm_struct->tm_min, tm_struct->tm_sec,
str_type, msg);