marked more strings for translation
authorArun Persaud <arun@nubati.net>
Sun, 18 Apr 2010 06:21:15 +0000 (23:21 -0700)
committerArun Persaud <arun@nubati.net>
Sun, 18 Apr 2010 06:21:15 +0000 (23:21 -0700)
include/game.php
po/messages.pot

index cafa02658c6e308bc86a60fd65564dff18078de2..aa2561699b15a43a74ec8b26f30b69da056b43ed 100644 (file)
@@ -239,7 +239,7 @@ if($session)
 
     if($finalscore)
       {
 
     if($finalscore)
       {
-       echo "Score: \n";
+       echo _('Score').": \n";
        foreach($finalscore as $user=>$value)
          {
            $name = DB_get_name('userid',$user);
        foreach($finalscore as $user=>$value)
          {
            $name = DB_get_name('userid',$user);
@@ -1288,7 +1288,7 @@ switch($mystatus)
     $firstcard = ''; /* first card in a trick */
 
     echo "\n<ul class=\"tricks\">\n";
     $firstcard = ''; /* first card in a trick */
 
     echo "\n<ul class=\"tricks\">\n";
-    echo "  <li class=\"nohighlight\"> Game ".DB_format_gameid($gameid).": </li>\n";
+    echo '  <li class="nohighlight"> '._('Game').' '.DB_format_gameid($gameid).": </li>\n";
 
     /* output vorbehalte */
     $mygametype =  DB_get_gametype_by_gameid($gameid);
 
     /* output vorbehalte */
     $mygametype =  DB_get_gametype_by_gameid($gameid);
@@ -1332,14 +1332,14 @@ switch($mystatus)
            if($trick!=$lasttrick)
              {
                /* start of an old trick? */
            if($trick!=$lasttrick)
              {
                /* start of an old trick? */
-               echo "  <li onclick=\"hl('$trickNR');\" class=\"old\"><a href=\"#\">Trick $trickNR</a>\n".
+               echo "  <li onclick=\"hl('$trickNR');\" class=\"old\"><a href=\"#\">"._('Trick')." $trickNR</a>\n".
                  "    <div class=\"trick\" id=\"trick".$trickNR."\">\n".
                  "      <img class=\"arrow\" src=\"pics/arrow".($pos-1).".png\" alt=\"table\" />\n";
              }
            else if($trick==$lasttrick)
              {
                /* start of a last trick? */
                  "    <div class=\"trick\" id=\"trick".$trickNR."\">\n".
                  "      <img class=\"arrow\" src=\"pics/arrow".($pos-1).".png\" alt=\"table\" />\n";
              }
            else if($trick==$lasttrick)
              {
                /* start of a last trick? */
-               echo "  <li onclick=\"hl('$trickNR');\" class=\"current\"><a href=\"#\">Trick $trickNR</a>\n".
+               echo "  <li onclick=\"hl('$trickNR');\" class=\"current\"><a href=\"#\">"._('Trick')." $trickNR</a>\n".
                  "    <div class=\"trick\" id=\"trick".$trickNR."\">\n".
                  "      <img class=\"arrow\" src=\"pics/arrow".($pos-1).".png\" alt=\"table\" />\n";
              };
                  "    <div class=\"trick\" id=\"trick".$trickNR."\">\n".
                  "      <img class=\"arrow\" src=\"pics/arrow".($pos-1).".png\" alt=\"table\" />\n";
              };
@@ -1602,7 +1602,7 @@ switch($mystatus)
            $pos = DB_get_pos_by_hash($me);
            if($sequence==1)
              {
            $pos = DB_get_pos_by_hash($me);
            if($sequence==1)
              {
-               echo "  <li onclick=\"hl('".($tricknr)."');\" class=\"current\"><a href=\"#\">Trick ".($tricknr)."</a>\n".
+               echo "  <li onclick=\"hl('".($tricknr)."');\" class=\"current\"><a href=\"#\">"._('Trick').' '.($tricknr)."</a>\n".
                  "    <div class=\"trick\" id=\"trick".($tricknr)."\">\n".
                  "      <img class=\"arrow\" src=\"pics/arrow".($pos-1).".png\" alt=\"table\" />\n";
              }
                  "    <div class=\"trick\" id=\"trick".($tricknr)."\">\n".
                  "      <img class=\"arrow\" src=\"pics/arrow".($pos-1).".png\" alt=\"table\" />\n";
              }
@@ -1913,7 +1913,7 @@ switch($mystatus)
     /* display points in case game is over */
     if($mystatus=='gameover' && DB_get_game_status_by_gameid($gameid)=='gameover' )
       {
     /* display points in case game is over */
     if($mystatus=='gameover' && DB_get_game_status_by_gameid($gameid)=='gameover' )
       {
-       echo "  <li onclick=\"hl('13');\" class=\"current\"><a href=\"#\">Score</a>\n".
+       echo "  <li onclick=\"hl('13');\" class=\"current\"><a href=\"#\">"._('Score')."</a>\n".
          "    <div class=\"trick\" id=\"trick13\">\n";
        /* add pic for re/contra
         "      <img class=\"arrow\" src=\"pics/arrow".($pos-1).".png\" alt=\"table\" />\n";*/
          "    <div class=\"trick\" id=\"trick13\">\n";
        /* add pic for re/contra
         "      <img class=\"arrow\" src=\"pics/arrow".($pos-1).".png\" alt=\"table\" />\n";*/
@@ -1970,8 +1970,8 @@ switch($mystatus)
        echo "    </div>\n  </li>\n";  /* end div trick, end li trick */
       }
 
        echo "    </div>\n  </li>\n";  /* end div trick, end li trick */
       }
 
-    echo "  <li onclick=\"hl_prev();\" class=\"old\"><a href=\"#\">prev</a></li>\n";
-    echo "  <li onclick=\"hl_next();\" class=\"old\"><a href=\"#\">next</a></li>\n";
+    echo "  <li onclick=\"hl_prev();\" class=\"old\"><a href=\"#\">"._('prev')."</a></li>\n";
+    echo "  <li onclick=\"hl_next();\" class=\"old\"><a href=\"#\">"._('next')."</a></li>\n";
     echo "</ul>\n"; /* end ul tricks*/
 
     $mycards = DB_get_hand($me);
     echo "</ul>\n"; /* end ul tricks*/
 
     $mycards = DB_get_hand($me);
index 50f3a59c6acb584e3fb4ef0ec63fa87e586bae17..e1bb06284e2b1aa87434bf9a4261098c0a0c8525 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: edoko\n"
 "Report-Msgid-Bugs-To: arun@nubati.net\n"
 msgstr ""
 "Project-Id-Version: edoko\n"
 "Report-Msgid-Bugs-To: arun@nubati.net\n"
-"POT-Creation-Date: 2010-04-17 22:55-0700\n"
+"POT-Creation-Date: 2010-04-17 23:20-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"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -76,6 +76,10 @@ msgstr ""
 msgid "lowtrump"
 msgstr ""
 
 msgid "lowtrump"
 msgstr ""
 
+#: include/game.php:242 include/game.php:1916
+msgid "Score"
+msgstr ""
+
 #: include/game.php:286
 msgid "previous game"
 msgstr ""
 #: include/game.php:286
 msgid "previous game"
 msgstr ""
@@ -144,10 +148,26 @@ msgid ""
 "wait for the others. Just wait for an email."
 msgstr ""
 
 "wait for the others. Just wait for an email."
 msgstr ""
 
+#: include/game.php:1291
+msgid "Game"
+msgstr ""
+
+#: include/game.php:1335 include/game.php:1342 include/game.php:1605
+msgid "Trick"
+msgstr ""
+
 #: include/game.php:1907
 msgid "please wait until it's your turn!"
 msgstr ""
 
 #: include/game.php:1907
 msgid "please wait until it's your turn!"
 msgstr ""
 
+#: include/game.php:1973
+msgid "prev"
+msgstr ""
+
+#: include/game.php:1974
+msgid "next"
+msgstr ""
+
 #: include/game.php:2026
 msgid "Your cards were"
 msgstr ""
 #: include/game.php:2026
 msgid "Your cards were"
 msgstr ""