- $message = "\n".
- "you are invited to play a game of DoKo (that is to debug the program ;).\n".
- "Place comments and bug reports here:\n".
- "http://wiki.nubati.net/index.php?title=EmailDoko\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\n".
- "".$HOST.$INDEX."?action=game&me=";
-
- mymail($EmailA,"$EmailName You are invited to a game of DoKo (game ".DB_format_gameid($gameid).")",
- "Hello $PlayerA,\n".$message.$hashA);
- mymail($EmailB,"$EmailName You are invited to a game of DoKo (game ".DB_format_gameid($gameid).")",
- "Hello $PlayerB,\n".$message.$hashB);
- mymail($EmailC,"$EmailName You are invited to a game of DoKo (game ".DB_format_gameid($gameid).")",
- "Hello $PlayerC,\n".$message.$hashC);
- mymail($EmailD,"$EmailName You are invited to a game of DoKo (game ".DB_format_gameid($gameid).")",
- "Hello $PlayerD,\n".$message.$hashD);
-
- 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";