BUGFIX: move some text into the message box
[e-DoKo.git] / include / user.php
index 2c3afeb33b01d4f99f3136c292fae1072c4a895a..1b3d83e69d2b20d95ef01cf6a6bd25addd244fcc 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/* Copyright 2006, 2007, 2008, 2009, 2010 Arun Persaud <arun@nubati.net>
+/* Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012 Arun Persaud <arun@nubati.net>
  *
  *   This file is part of e-DoKo.
  *
@@ -121,6 +121,8 @@ else
        $_SESSION['name'] = $myname;
 
        $PREF = DB_get_PREF($myid);
+       /* set language chosen in preferences, will become active on the next reload (see index.php)*/
+       $_SESSION['language'] = $PREF['language'];
 
        DB_update_user_timestamp($myid);
 
@@ -138,12 +140,12 @@ else
              " 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 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 "<p>\n";
+       echo ' <span class="gamestatuspre"> &nbsp; </span> &nbsp;'._('pre-game phase');
+       echo ' <span class="gamestatusplay"> &nbsp; </span> &nbsp;'._('game in progess');
+       echo ' <span class="gamestatusover "><a>N</a> </span> &nbsp;'._('game over (N people played this hand)').' <br />';
        echo ' '._("Reminder: canceling a game can't be reversed!");
        echo "</p>\n";