fixed more language settings in email; marked more strings for translation
[e-DoKo.git] / rss.php
diff --git a/rss.php b/rss.php
index a06dc63be0c0ba4ffc565419ec870a25af1d009e..25695b810d9969c385bd05c24acaa7fafc9726be 100644 (file)
--- a/rss.php
+++ b/rss.php
@@ -72,9 +72,13 @@ header("Content-Type: text/xml");
 ?>
 <feed xmlns="http://www.w3.org/2005/Atom">
 <title>E-DoKo Feed</title>
-<subtitle>Know when it is your turn</subtitle>
 <?php
 
+/* set language */
+set_language($id,'uid');
+
+echo '<subtitle>'._('Know when it is your turn')."</subtitle>\n";
+
   global $WIKI,$INDEX, $HOST;
 
   /* output last creation date */
@@ -104,7 +108,7 @@ echo "</author>\n\n";
   while( $r = DB_fetch_array($result))
     {
       echo "<entry>\n";
-      echo "<title>game ".DB_format_gameid($r[1])."</title>\n";
+      echo "<title>"._('game').' '.DB_format_gameid($r[1])."</title>\n";
       $url=$INDEX."?action=game&amp;me=".$r[0];
       echo "<link href=\"".$HOST.$url."\" />\n";
       $date = DB_get_game_timestamp($r[1]);
@@ -112,7 +116,7 @@ echo "</author>\n\n";
       $date = date("Y-m-d",$timestamp);
       echo "<id>tag:doko.nubati.net,$date:$url</id>\n";
       echo "<updated>".date(DATE_ATOM,$timestamp)."</updated>\n";
-      echo "<summary>Please use the link to access the game.</summary>\n";
+      echo '<summary>'._('Please use the link to access the game.')."</summary>\n";
       echo "</entry>\n\n";
     }