}
else if(myisset('card') && !$myturn )
{
- echo "please wait until it's your turn! <br />\n";
+ echo _("please wait until it's your turn!")."<br />\n";
}
if($seq!=4 && $trickNR>=1 && !(myisset('card') && $myturn) )
if($myturn && !myisset('card') && $mystatus=='play' )
{
echo "Hello ".$myname.", it's your turn! <br />\n";
- echo "Your cards are: <br />\n";
+ echo _('Your cards are').": <br />\n";
/* do we have to follow suite? */
$followsuit = 0;
}
else if($mystatus=='play' )
{
- echo "Your cards are: <br />\n";
+ echo _('Your cards are').": <br />\n";
foreach($mycards as $card)
display_card($card,$PREF['cardset']);
}
$oldcards = mysort($oldcards,$gametype);
if(isset($_SESSION['id']) && $myid==$_SESSION['id'])
- echo "Your cards were: <br />\n";
+ echo _('Your cards were').": <br />\n";
else
{
$name = DB_get_name('userid',$myid);
if($gamestatus == 'play' || $gameend < 60*60*24*7)
{
- echo "<br />\nA short comment:<input name=\"comment\" type=\"text\" size=\"15\" maxlength=\"100\" />\n";
+ echo "<br />\n"._('A short comment').":<input name=\"comment\" type=\"text\" size=\"15\" maxlength=\"100\" />\n";
}
-echo "<input type=\"submit\" value=\"submit\" />\n";
+echo "<input type=\"submit\" value=\""._('submit')."\" />\n";
/* has this hand been played by others? */
$other_game_ids = DB_played_by_others($gameid);
{
global $defaulttimezone, $INDEX, $WIKI, $RSS;
- if(isset($_SESSION["name"]))
+ if(isset($_SESSION['name']))
{
- $name = $_SESSION["name"];
+ $name = $_SESSION['name'];
/* last logon time */
- $myid = DB_get_userid("name",$name);
+ $myid = DB_get_userid('name',$name);
$zone = DB_get_user_timezone($myid);
$time = DB_get_user_timestamp($myid);
/* logout info */
echo "\n<div class=\"status\">\n";
echo $name,"\n";
- echo " | <a href=\"".$INDEX."\"> mypage </a>\n";
- echo " | <a href=\"".$INDEX."?action=prefs\">settings</a>\n";
- echo " | <a href=\"".$INDEX."?action=new\">new game</a>\n";
- echo " | <a href=\"".$INDEX."?action=stats\">statistics</a>\n";
- echo " | <a href=\"".$WIKI."\">wiki/bugs</a>\n";
- echo " | <a href=\"".$RSS."?uid=".$myid."&token=".$token."\">rss</a>\n";
- echo " | <a href=\"".$INDEX."?action=logout\">logout</a>\n";
+ echo " | <a href=\"".$INDEX."\">"._('mypage')."</a>\n";
+ echo " | <a href=\"".$INDEX."?action=prefs\">"._('settings')."</a>\n";
+ echo " | <a href=\"".$INDEX."?action=new\">"._('new game')."</a>\n";
+ echo " | <a href=\"".$INDEX."?action=stats\">"._('statistics')."</a>\n";
+ echo " | <a href=\"".$WIKI."\">"._('wiki/bugs')."</a>\n";
+ echo " | <a href=\"".$RSS."?uid=".$myid."&token=".$token."\">"._('atom')."</a>\n";
+ echo " | <a href=\"".$INDEX."?action=logout\">"._('logout')."</a>\n";
echo "</div>\n";
- echo "<div class=\"lastlogin\"><span>last login: ".date("r",$unixtime)."</span></div>\n";
+ echo "<div class=\"lastlogin\"><span>"._('last login').": ".date("r",$unixtime)."</span></div>\n";
}
else
{
echo "\n<div class=\"status\">\n";
- echo "<a href=\"".$INDEX."\">login</a>\n";
+ echo "<a href=\"".$INDEX."\">"._('login')."</a>\n";
echo "</div>\n";
}
return;
function output_user_notes($userid,$gameid,$userstatus)
{
- echo "<div class=\"notes\"> Personal notes: <br />\n";
+ echo "<div class=\"notes\"> "._('Personal notes').": <br />\n";
$notes = DB_get_notes_by_userid_and_gameid($userid,$gameid);
foreach($notes as $note)
echo "$note <hr />\n";