From f78018b77599b411a743010c4a8bbb7e3385f111 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 20 Mar 2011 00:56:21 -0700 Subject: TRANSLATION: marked subjects lines in emails for translation --- include/functions.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'include/functions.php') 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 */ -- cgit v1.2.3-18-g5258