marked more strings for translation
authorArun Persaud <arun@nubati.net>
Tue, 27 Apr 2010 05:46:12 +0000 (22:46 -0700)
committerArun Persaud <arun@nubati.net>
Tue, 27 Apr 2010 05:46:12 +0000 (22:46 -0700)
include/user.php

index eb4f6c4c33dd8160c066491811546b3328bb75ae..9ac127a98290e994f30a1ff9ab456aa71afb511a 100644 (file)
@@ -133,16 +133,17 @@ else
            $vac_start   = $myvacation[0];
            $vac_stop    = $myvacation[1];
            $vac_comment = $myvacation[2];
            $vac_start   = $myvacation[0];
            $vac_stop    = $myvacation[1];
            $vac_comment = $myvacation[2];
-           echo "<p class=\"vacation\">Enjoy your vacation (don't forgot to change your settings once you're back). Between $vac_start and $vac_stop other users will see the following message: $vac_comment.</p>\n";
+           echo '<p class="vacation">'._("Enjoy your vacation (don't forgot to change your settings once you're back).").
+             " Between $vac_start and $vac_stop other users will see the following message: $vac_comment.</p>\n";
          }
 
          }
 
-       echo "<h4>These are all your games:</h4>\n";
+       echo '<h4>'._('These are all your games').":</h4>\n";
        /* output legend */
        /* output legend */
-       echo "<p>Games: \n";
-       echo "<span class=\"gamestatuspre\"> &nbsp; </span> =  pre-game phase ";
-       echo "<span class=\"gamestatusplay\"> &nbsp; </span> =  game in progess ";
-       echo "<span class=\"gamestatusover \"><a>N</a> </span> =  game over (N people played the same hand) <br />";
-       echo " Reminder: canceling a game can't be reversed!";
+       echo '<p>'._('Games').": \n";
+       echo '<span class="gamestatuspre"> &nbsp; </span> =  '._('pre-game phase');
+       echo '<span class="gamestatusplay"> &nbsp; </span> =  '._('game in progess');
+       echo '<span class="gamestatusover "><a>N</a> </span> = '._('game over (N people played the same hand)').' <br />';
+       echo ' '._("Reminder: canceling a game can't be reversed!");
        echo "</p>\n";
 
        /* get all games */
        echo "</p>\n";
 
        /* get all games */
@@ -225,7 +226,7 @@ else
                          {
                            $output_active .= '<span class="turn">';
                            if($userid==$myid || !$userid)
                          {
                            $output_active .= '<span class="turn">';
                            if($userid==$myid || !$userid)
-                             $output_active .= " <strong>your</strong> turn\n";
+                             $output_active .= ' <strong>'._('your turn')."</strong>\n";
                            else
                              {
                                $name = DB_get_name('userid',$userid);
                            else
                              {
                                $name = DB_get_name('userid',$userid);
@@ -243,7 +244,7 @@ else
                                /* check if we need to send out a reminder */
                                if(DB_get_reminder($userid,$gameid)==0)
                                  if(time()-strtotime($gamemoddate) > 60*60*24*7)
                                /* check if we need to send out a reminder */
                                if(DB_get_reminder($userid,$gameid)==0)
                                  if(time()-strtotime($gamemoddate) > 60*60*24*7)
-                                   $output_active .= "<a href=\"$INDEX?action=reminder&amp;me=".$myhash."\">Send a reminder?</a> ";
+                                   $output_active .= "<a href=\"$INDEX?action=reminder&amp;me=".$myhash."\">"._('Send a reminder?').'</a> ';
 
                              };
                            $output_active .= '</span>';
 
                              };
                            $output_active .= '</span>';
@@ -254,7 +255,7 @@ else
 
                        if($maxgame>1)
                          {
 
                        if($maxgame>1)
                          {
-                           $output_active .= ' <span class="gameshidesession link">(hide/show) old</span><br />'."\n";
+                           $output_active .= ' <span class="gameshidesession link">'._('(hide/show) old').'</span><br />'."\n";
                            $output_active .= ' <span class="gamessession">'.$sessionoutput.'</span>';
                          }
 
                            $output_active .= ' <span class="gamessession">'.$sessionoutput.'</span>';
                          }
 
@@ -295,23 +296,23 @@ else
          }
 
        echo "<ul>\n ";
          }
 
        echo "<ul>\n ";
-       echo " <li><span class=\"gameshowall link\">show all</span> <span class=\"gamehideall link\">hide all</span></li>\n";
+       echo ' <li><span class="gameshowall link">'._('show all').'</span> <span class="gamehideall link">'._('hide all')."</span></li>\n";
        echo $output_active;
        echo $output_active;
-       echo " <li><span class=\"gameshidesession link\">hide/show inactive</span><ul class=\"gamessession\">$output_inactive </ul></li>";
+       echo ' <li><span class="gameshidesession link">'._('hide/show inactive').'</span><ul class="gamessession">'."$output_inactive </ul></li>";
        echo "</ul>\n";
 
        /* give a hint for new players */
        if($count<10)
        echo "</ul>\n";
 
        /* give a hint for new players */
        if($count<10)
-         echo "<p class=\"newbiehint\">You can start new games using the link in the top right corner!</p>\n";
+         echo '<p class="newbiehint">'._('You can start new games using the link in the top right corner!')."</p>\n";
 
        /* display last 5 users that have signed up to e-DoKo */
        $names = DB_get_names_of_new_logins(5);
 
        /* display last 5 users that have signed up to e-DoKo */
        $names = DB_get_names_of_new_logins(5);
-       echo "<h4>New Players:</h4>\n<p>\n";
+       echo '<h4>'._('New Players').":</h4>\n<p>\n";
        echo implode(", ",$names).",...\n";
        echo "</p>\n";
 
        /* display last 5 users that logged on */
        echo implode(", ",$names).",...\n";
        echo "</p>\n";
 
        /* display last 5 users that logged on */
-       echo "<h4>Players last logged in:</h4>\n<p>\n";
+       echo '<h4>'._('Players last logged in').":</h4>\n<p>\n";
 
        $names  = DB_get_names_of_last_logins(7);
        $emails = DB_get_emails_of_last_logins(7);
 
        $names  = DB_get_names_of_last_logins(7);
        $emails = DB_get_emails_of_last_logins(7);