summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2010-03-14 15:29:43 -0700
committerArun Persaud <arun@nubati.net>2010-03-14 15:29:43 -0700
commit36702d88963e5646c3e715f72c31ec75f7cb0fcb (patch)
treef4e344e4c8e6d2add76837476edbaadce07ab878
parentc581cd05476d07f0fd17dab41cbb211a443fd57f (diff)
parent80f9422ddeba6ec513343cb0d4e314172d983fa3 (diff)
downloade-DoKo-36702d88963e5646c3e715f72c31ec75f7cb0fcb.tar.gz
e-DoKo-36702d88963e5646c3e715f72c31ec75f7cb0fcb.tar.bz2
e-DoKo-36702d88963e5646c3e715f72c31ec75f7cb0fcb.zip
Merge branch 'master' of /home/arun/nubati.net/git/e-DoKo
-rw-r--r--README2
-rw-r--r--TRANSLATION2
-rw-r--r--include/preferences.php61
-rw-r--r--locale/de/LC_MESSAGES/edoko.mobin476 -> 1119 bytes
-rw-r--r--po/de.po72
-rw-r--r--po/messages.pot70
6 files changed, 172 insertions, 35 deletions
diff --git a/README b/README
index 9fc1116..5271dbf 100644
--- a/README
+++ b/README
@@ -2,4 +2,4 @@ This is eDoKo a browser based Doppelkopf implementation with email
notification. All files are under GPL, the only expection are the
images of the german card deck. These have been provided by ASS
Altenburg GmbH (email: info@spielkarten.com) under a free (as in beer)
-license. If you want to use them too you need to email them and sign a license! \ No newline at end of file
+license. If you want to use them too you need to email them and sign a license!
diff --git a/TRANSLATION b/TRANSLATION
index 38bbaaa..b0c99c5 100644
--- a/TRANSLATION
+++ b/TRANSLATION
@@ -14,7 +14,7 @@ msginit -i messages.pot -o de.po
To update a po file run:
cd po
-msgmerge de.po messages.pot
+msgmerge de.po messages.pot -o de.po
Start editing and then after updating a po run:
diff --git a/include/preferences.php b/include/preferences.php
index 3904899..b30e7cb 100644
--- a/include/preferences.php
+++ b/include/preferences.php
@@ -327,12 +327,12 @@ $timezone = DB_get_user_timezone($myid);
echo "<div class=\"user\">\n";
echo " <form action=\"index.php?action=prefs\" method=\"post\">\n";
-echo " <h2>Your settings are</h2>\n";
+echo ' <h2>'._('Your settings are')."</h2>\n";
echo " <fieldset>\n";
-echo " <legend>Game-related</legend>\n";
+echo ' <legend>'._('Game-related')."</legend>\n";
echo " <table>\n";
-echo " <tr><td>Vacation: </td>\n";
+echo ' <tr><td>'._('Vacation:')." </td>\n";
if($PREF['vacation_start'])
$value = substr($PREF['vacation_start'],0,10);
else
@@ -347,25 +347,25 @@ if($PREF['vacation_comment'])
$value = $PREF['vacation_comment'];
else
$value = '';
-echo " <td>comment:<input type=\"text\" id=\"vacation_comment\" name=\"vacation_comment\" size=\"10\" maxlength=\"50\" value=\"$value\" />";
-if($changed_vacation == 1) echo "changed";
-if($changed_vacation == -1) echo "wrong date format";
+echo ' <td>'._('comment:')."<input type=\"text\" id=\"vacation_comment\" name=\"vacation_comment\" size=\"10\" maxlength=\"50\" value=\"$value\" />";
+if($changed_vacation == 1) echo _('changed');
+if($changed_vacation == -1) echo _('wrong date format');
echo "</td></tr>\n";
echo "<tr><td></td><td>use YYYY-MM-DD</td><td>use '-' in start field to unset vacation</td></tr>\n";
echo " <tr><td>Notification: </td><td>\n";
echo " <select id=\"notify\" name=\"notify\" size=\"1\">\n";
if($PREF['email']=="emailaddict")
{
- echo " <option value=\"emailaddict\" selected=\"selected\">less emails</option>\n";
- echo " <option value=\"emailnonaddict\">lots of emails</option>\n";
+ echo " <option value=\"emailaddict\" selected=\"selected\">"._('less emails')."</option>\n";
+ echo " <option value=\"emailnonaddict\">"._('lots of emails')."</option>\n";
}
else
{
- echo " <option value=\"emailaddict\">less email</option>\n";
- echo " <option value=\"emailnonaddict\" selected=\"selected\">lots of email</option>\n";
+ echo " <option value=\"emailaddict\">"._('less emails')."</option>\n";
+ echo " <option value=\"emailnonaddict\" selected=\"selected\">"._('lots of emails')."</option>\n";
}
echo " </select>";
-if($changed_notify) echo "changed";
+if($changed_notify) echo _('changed');
echo " </td></tr>\n";
echo " <tr><td>Digest: </td><td>\n";
@@ -378,34 +378,34 @@ echo ">digest off</option>\n";
echo " <option value=\"digest-1h\" ";
if($PREF['digest']=="digest-1h") echo $selected;
-echo ">every hour</option>\n";
+echo ">"._('every hour')."</option>\n";
echo " <option value=\"digest-2h\" ";
if($PREF['digest']=="digest-2h") echo $selected;
-echo ">every 2h</option>\n";
+echo ">"._('every 2h')."</option>\n";
echo " <option value=\"digest-3h\" ";
if($PREF['digest']=="digest-3h") echo $selected;
-echo ">every 3h</option>\n";
+echo ">"._('every 3h')."</option>\n";
echo " <option value=\"digest-4h\" ";
if($PREF['digest']=="digest-4h") echo $selected;
-echo ">every 4h</option>\n";
+echo ">"._('every 4h')."</option>\n";
echo " <option value=\"digest-6h\" ";
if($PREF['digest']=="digest-6h") echo $selected;
-echo ">every 6h</option>\n";
+echo ">"._('every 6h')."</option>\n";
echo " <option value=\"digest-12h\"";
if($PREF['digest']=="digest-12h") echo $selected;
-echo ">every 12h</option>\n";
+echo ">"._('every 12h')."</option>\n";
echo " <option value=\"digest-24h\"";
if($PREF['digest']=="digest-24h") echo $selected;
-echo ">every 24h</option>\n";
+echo ">"._('every 24h')."</option>\n";
echo " </select>";
-if($changed_digest) echo "changed";
+if($changed_digest) echo _('changed');
echo " </td></tr>\n";
@@ -413,16 +413,16 @@ echo " <tr><td>Autosetup: </td><td>\n";
echo " <select id=\"autosetup\" name=\"autosetup\" size=\"1\">\n";
if($PREF['autosetup']=="yes")
{
- echo " <option value=\"yes\" selected=\"selected\">accept every game</option>\n";
- echo " <option value=\"no\">ask for games</option>\n";
+ echo " <option value=\"yes\" selected=\"selected\">"._('accept every game')."</option>\n";
+ echo " <option value=\"no\">"._('ask for games')."</option>\n";
}
else
{
- echo " <option value=\"yes\">accept every game</option>\n";
- echo " <option value=\"no\" selected=\"selected\">ask for games</option>\n";
+ echo " <option value=\"yes\">"._('accept every game')."</option>\n";
+ echo " <option value=\"no\" selected=\"selected\">"._('ask for games')."</option>\n";
}
echo " </select>";
-if($changed_autosetup) echo "changed";
+if($changed_autosetup) echo _('changed');
echo " </td></tr>\n";
echo " <tr><td>Sorting: </td><td>\n";
@@ -438,7 +438,7 @@ if($PREF['sorting']=="high-low")
echo " <option value=\"low-high\" selected=\"selected\">low to high</option>\n";
}
echo " </select>";
-if($changed_sorting) echo "changed";
+if($changed_sorting) echo _('changed');
echo " </td></tr>\n";
echo " <tr><td>Open for new games: </td><td>\n";
echo " <select id=\"open_for_games\" name=\"open_for_games\" size=\"1\">\n";
@@ -453,7 +453,7 @@ if($PREF['open_for_games']=="no")
echo " <option value=\"no\">no</option>\n";
}
echo " </select>";
-if($changed_openforgames) echo "changed";
+if($changed_openforgames) echo _('changed');
echo " </td></tr>\n";
echo " <tr><td>Card set: </td><td>\n";
@@ -469,7 +469,7 @@ if($PREF['cardset']=="altenburg")
echo " <option value=\"english\" selected=\"selected\">English cards</option>\n";
}
echo " </select>";
-if($changed_cards) echo "changed";
+if($changed_cards) echo _('changed');
echo " </td></tr>\n";
echo " </table>\n";
echo " </fieldset>\n";
@@ -479,10 +479,11 @@ echo " <table>\n";
echo " <tr><td>Email: </td><td> $email </td></tr>\n";
echo " <tr><td>Timezone: </td><td>\n";
output_select_timezone("timezone",$timezone);
-if($changed_timezone) echo "changed";
+if($changed_timezone) echo _('changed');
echo "</td></tr>\n";
echo " <tr><td>Language: </td><td>\n";
output_select_language("language",$PREF['language']);
+if($changed_language == 1) echo _('changed');
echo "</td></tr>\n";
echo " <tr><td>Password(old): </td><td>",
"<input type=\"password\" id=\"password0\" name=\"password0\" size=\"20\" maxlength=\"30\" />";
@@ -498,7 +499,7 @@ switch($changed_password)
echo "The old password is not correct.";
break;
case '1':
- echo "changed";
+ echo _('changed');
break;
}
echo " </td></tr>\n";
@@ -537,7 +538,7 @@ if($changed_openid)
echo " </fieldset>\n";
echo " <fieldset><legend>Submit</legend><input type=\"submit\" name=\"passwd\" value=\"set\" /></fieldset>\n";
echo " </form>\n";
-echo " <p>E-DoKo uses <a href=\"http://www.gravatar.org\">gravatars</a> as icons. I</p>";
+echo " <p>E-DoKo uses <a href=\"http://www.gravatar.org\">gravatars</a> as icons.</p>";
echo "</div>\n";
return;
diff --git a/locale/de/LC_MESSAGES/edoko.mo b/locale/de/LC_MESSAGES/edoko.mo
index e72f5ab..15b120c 100644
--- a/locale/de/LC_MESSAGES/edoko.mo
+++ b/locale/de/LC_MESSAGES/edoko.mo
Binary files differ
diff --git a/po/de.po b/po/de.po
index 9d27938..7b68628 100644
--- a/po/de.po
+++ b/po/de.po
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: edoko\n"
"Report-Msgid-Bugs-To: arun@nubati.net\n"
-"POT-Creation-Date: 2010-03-14 11:35-0700\n"
-"PO-Revision-Date: 2010-03-14 12:01-0700\n"
+"POT-Creation-Date: 2010-03-14 15:07-0700\n"
+"PO-Revision-Date: 2010-03-14 15:09-0700\n"
"Last-Translator: Arun Persaud <arun@nubati.net>\n"
"Language-Team: English\n"
"MIME-Version: 1.0\n"
@@ -19,3 +19,71 @@ msgstr ""
#: include/output.php:398
msgid "Welcome to E-Doko"
msgstr "Willkommen bei E-Doko"
+
+#: include/preferences.php:330
+msgid "Your settings are"
+msgstr "Deine Einstellungen sind"
+
+#: include/preferences.php:332
+msgid "Game-related"
+msgstr ""
+
+#: include/preferences.php:335
+msgid "Vacation:"
+msgstr "Urlaub"
+
+#: include/preferences.php:350
+msgid "comment:"
+msgstr "Kommentar:"
+
+#: include/preferences.php:351 include/preferences.php:368
+#: include/preferences.php:408 include/preferences.php:425
+#: include/preferences.php:441 include/preferences.php:456
+#: include/preferences.php:472 include/preferences.php:482
+#: include/preferences.php:486 include/preferences.php:502
+msgid "changed"
+msgstr "geaendert"
+
+#: include/preferences.php:352
+msgid "wrong date format"
+msgstr "Falsches Datumformat"
+
+#: include/preferences.php:359 include/preferences.php:364
+msgid "less emails"
+msgstr "weniger E-mails"
+
+#: include/preferences.php:360 include/preferences.php:365
+msgid "lots of emails"
+msgstr "viele E-mails"
+
+#: include/preferences.php:381
+msgid "every hour"
+msgstr "stuendlich"
+
+#: include/preferences.php:385
+msgid "every 2h"
+msgstr "alle 2h"
+
+#: include/preferences.php:389
+msgid "every 3h"
+msgstr "alle 3h"
+
+#: include/preferences.php:393
+msgid "every 4h"
+msgstr "alle 4h"
+
+#: include/preferences.php:401
+msgid "every 12h"
+msgstr "alle 12h"
+
+#: include/preferences.php:405
+msgid "every 24h"
+msgstr "alle 24h"
+
+#: include/preferences.php:416 include/preferences.php:421
+msgid "accept every game"
+msgstr "jedes Spiel akzeptieren"
+
+#: include/preferences.php:417 include/preferences.php:422
+msgid "ask for games"
+msgstr ""
diff --git a/po/messages.pot b/po/messages.pot
index 08d1463..f6a6f32 100644
--- a/po/messages.pot
+++ b/po/messages.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: edoko\n"
"Report-Msgid-Bugs-To: arun@nubati.net\n"
-"POT-Creation-Date: 2010-03-14 11:35-0700\n"
+"POT-Creation-Date: 2010-03-14 15:07-0700\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"
@@ -19,3 +19,71 @@ msgstr ""
#: include/output.php:398
msgid "Welcome to E-Doko"
msgstr ""
+
+#: include/preferences.php:330
+msgid "Your settings are"
+msgstr ""
+
+#: include/preferences.php:332
+msgid "Game-related"
+msgstr ""
+
+#: include/preferences.php:335
+msgid "Vacation:"
+msgstr ""
+
+#: include/preferences.php:350
+msgid "comment:"
+msgstr ""
+
+#: include/preferences.php:351 include/preferences.php:368
+#: include/preferences.php:408 include/preferences.php:425
+#: include/preferences.php:441 include/preferences.php:456
+#: include/preferences.php:472 include/preferences.php:482
+#: include/preferences.php:486 include/preferences.php:502
+msgid "changed"
+msgstr ""
+
+#: include/preferences.php:352
+msgid "wrong date format"
+msgstr ""
+
+#: include/preferences.php:359 include/preferences.php:364
+msgid "less emails"
+msgstr ""
+
+#: include/preferences.php:360 include/preferences.php:365
+msgid "lots of emails"
+msgstr ""
+
+#: include/preferences.php:381
+msgid "every hour"
+msgstr ""
+
+#: include/preferences.php:385
+msgid "every 2h"
+msgstr ""
+
+#: include/preferences.php:389
+msgid "every 3h"
+msgstr ""
+
+#: include/preferences.php:393
+msgid "every 4h"
+msgstr ""
+
+#: include/preferences.php:401
+msgid "every 12h"
+msgstr ""
+
+#: include/preferences.php:405
+msgid "every 24h"
+msgstr ""
+
+#: include/preferences.php:416 include/preferences.php:421
+msgid "accept every game"
+msgstr ""
+
+#: include/preferences.php:417 include/preferences.php:422
+msgid "ask for games"
+msgstr ""