- $message = "You are invited to play a game of DoKo.\n".
- "Please, place comments and bug reports here:\n$WIKI\n\n".
- "The whole round would consist of the following players:\n".
- "$PlayerA\n".
- "$PlayerB\n".
- "$PlayerC\n".
- "$PlayerD\n\n".
- "If you want to join this game, please follow this link:\n".
- "".$HOST.$INDEX."?action=game&me=";
-
- mymail($useridA, $gameid, GAME_NEW, $message.$hashA."\n\n");
- mymail($useridB, $gameid, GAME_NEW, $message.$hashB."\n\n");
- mymail($useridC, $gameid, GAME_NEW, $message.$hashC."\n\n");
- mymail($useridD, $gameid, GAME_NEW, $message.$hashD."\n\n");
-
- echo "<div class=\"message\">You started a new game. The emails have been sent out!</div>\n";
+
+ $users = array( $useridA => $hashA, $useridB => $hashB, $useridC => $hashC, $useridD => $hashD );
+ foreach ( $users as $uid => $hash )
+ {
+ set_language($uid,'uid');
+ $message = _('You are invited to play a game of DoKo.')."\n".
+ _('Please, place comments and bug reports here:')."\n$WIKI\n\n".
+ _('The whole round would consist of the following players:')."\n".
+ "$PlayerA\n".
+ "$PlayerB\n".
+ "$PlayerC\n".
+ "$PlayerD\n\n".
+ _('If you want to join this game, please follow this link:')."\n".
+ "".$HOST.$INDEX."?action=game&me=";
+
+ mymail($uid, $gameid, GAME_NEW, $message.$hash."\n\n");
+ };
+ set_language($myid,'uid');
+
+ echo '<div class="message">'._('You started a new game. The emails have been sent out!')."</div>\n";