summaryrefslogtreecommitdiffstats
path: root/include/functions.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2011-03-20 00:56:21 -0700
committerArun Persaud <apersaud@lbl.gov>2011-03-20 00:56:21 -0700
commitf78018b77599b411a743010c4a8bbb7e3385f111 (patch)
treec14591c4bbd784eecaede3af67d5f845b83224f5 /include/functions.php
parent08583506b9bdb4ef2d30bad9752c960f20fe54b6 (diff)
downloade-DoKo-f78018b77599b411a743010c4a8bbb7e3385f111.tar.gz
e-DoKo-f78018b77599b411a743010c4a8bbb7e3385f111.tar.bz2
e-DoKo-f78018b77599b411a743010c4a8bbb7e3385f111.zip
TRANSLATION: marked subjects lines in emails for translation
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php24
1 files changed, 12 insertions, 12 deletions
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 */