X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Ffunctions.php;h=52c0ab7b6224e21bd76a8751d6b7d5e08b4a1a42;hp=250450657a068a588916d50331729d9c764b78be;hb=f78018b77599b411a743010c4a8bbb7e3385f111;hpb=08583506b9bdb4ef2d30bad9752c960f20fe54b6 diff --git a/include/functions.php b/include/functions.php index 2504506..52c0ab7 100644 --- a/include/functions.php +++ b/include/functions.php @@ -103,40 +103,40 @@ function mymail($uid,$gameid=0,$type,$message) switch($type) { case GAME_CANCELED: - $subject.="Game $game canceled"; + $subject.=sprintf(_("Game %s canceled"),$game); break; case GAME_CANCELED_POVERTY: - $subject.="Game $game canceled (poverty not resolved)"; + $subject.=sprintf(_("Game %s canceled (poverty not resolved)"),$game); break; case GAME_CANCELED_TIMEOUT: - $subject.="Game $game canceled (timed out)"; + $subject.=sprintf(_("Game %s canceled (timed out)"),$game); break; case GAME_YOUR_TURN: - $subject.="A card has been played in game $game"; + $subject.=sprintf(_("A card has been played in game %s"),$game); break; case GAME_READY: - $subject.="Ready, set, go... (game $game)"; + $subject.=sprintf(_("Ready, set, go... (game %s)"),$game); break; case GAME_POVERTY: - $subject.="Poverty (game $game)"; + $subject.=sprintf(_("Poverty (game %s)"),$game); break; case GAME_DPOVERTY: - $subject.="Double poverty (game $game)"; + $subject.=sprintf(_("Double poverty (game %s)"),$game); break; case GAME_OVER: - $subject.="Game over (game $game)"; + $subject.=sprintf(_("Game over (game %s)"),$game); break; case GAME_RECOVERY: - $subject.="Recovery"; + $subject.=_("Recovery"); break; case GAME_REMINDER: - $subject.="Reminder: game $game it's your turn"; + $subject.=sprintf(_("Reminder: game %s it's your turn"),$game); break; case GAME_NEW: - $subject.="You are invited to a game of DoKo (game $game)"; + $subject.=sprintf(_("You are invited to a game of DoKo (game %s)"),$game); break; default: - $subject.="Problem with email, contact admin (errorcode $gameid)"; + $subject.=sprintf(_("Problem with email, contact admin (errorcode %d)"),$gameid); } /* standard goodbye */