summaryrefslogtreecommitdiffstats
path: root/include/user.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2010-04-26 22:48:28 -0700
committerArun Persaud <arun@nubati.net>2010-04-26 22:48:28 -0700
commitbbd5682c50f3bba8b7eb199392eaf0e0c0ff7c19 (patch)
treedad18092188667ac81ded89456bf2456da3a75fa /include/user.php
parent74ce5e0f2c94220aa23d07f4da6f9e9640de2101 (diff)
parentb20732f2e6ce7e33eeb818e257bb14eb01253a5f (diff)
downloade-DoKo-bbd5682c50f3bba8b7eb199392eaf0e0c0ff7c19.tar.gz
e-DoKo-bbd5682c50f3bba8b7eb199392eaf0e0c0ff7c19.tar.bz2
e-DoKo-bbd5682c50f3bba8b7eb199392eaf0e0c0ff7c19.zip
Merge branch 'master' of /home/arun/nubati.net/git/e-DoKo
Diffstat (limited to 'include/user.php')
-rw-r--r--include/user.php31
1 files changed, 16 insertions, 15 deletions
diff --git a/include/user.php b/include/user.php
index eb4f6c4..9ac127a 100644
--- a/include/user.php
+++ b/include/user.php
@@ -133,16 +133,17 @@ else
$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 */
- 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 */
@@ -225,7 +226,7 @@ else
{
$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);
@@ -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)
- $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>';
@@ -254,7 +255,7 @@ else
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>';
}
@@ -295,23 +296,23 @@ else
}
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 " <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 "<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);
- 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 "<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);