From 47a0a9b5b1c8acb36aa0e93179ce5a661a69427a Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Tue, 12 Jun 2012 20:59:43 -0700 Subject: use gettext for Atom feed --- rss.php | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/rss.php b/rss.php index a06dc63..269b734 100644 --- a/rss.php +++ b/rss.php @@ -72,9 +72,28 @@ header("Content-Type: text/xml"); ?> E-DoKo Feed -Know when it is your turn '._('Know when it is your turn')."\n"; + global $WIKI,$INDEX, $HOST; /* output last creation date */ @@ -104,7 +123,7 @@ echo "\n\n"; while( $r = DB_fetch_array($result)) { echo "\n"; - echo "game ".DB_format_gameid($r[1])."\n"; + echo ""._('game').' '.DB_format_gameid($r[1])."\n"; $url=$INDEX."?action=game&me=".$r[0]; echo "\n"; $date = DB_get_game_timestamp($r[1]); @@ -112,7 +131,7 @@ echo "\n\n"; $date = date("Y-m-d",$timestamp); echo "tag:doko.nubati.net,$date:$url\n"; echo "".date(DATE_ATOM,$timestamp)."\n"; - echo "Please use the link to access the game.\n"; + echo ''._('Please use the link to access the game.')."\n"; echo "\n\n"; } -- cgit v1.2.3-18-g5258