Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2002:
[Freeciv-Dev] (PR#2505) Game end messages not translated
Home

[Freeciv-Dev] (PR#2505) Game end messages not translated

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients:;
Subject: [Freeciv-Dev] (PR#2505) Game end messages not translated
From: "ChrisK@xxxxxxxx via RT" <rt@xxxxxxxxxxxxxx>
Date: Fri, 6 Dec 2002 13:06:28 -0800
Reply-to: rt@xxxxxxxxxxxxxx

1.14 BETA CVS 06 DEC 2002

Some game end messages to appear in the client are not properly
i18n'd. But we are lucky, these messages reappear exactly in gamelog,
where they _are_ i18n'd. So they are already localized in *.po, except
of one, which isn't used in normal play.

Patch attached.

Christian

-- 
Christian Knoke     * * *      http://www.enter.de/~c.knoke/
* * * * * * * * *  Ceterum censeo Microsoft esse dividendum.

--- server/srv_main.c.orig      Fri Dec  6 21:33:20 2002
+++ server/srv_main.c   Fri Dec  6 21:37:08 2002
@@ -199,7 +199,7 @@
   /* quit if we are past the year limit */
   if (game.year > game.end_year) {
     notify_conn(&game.est_connections, 
-       "Game ended in a draw as end year exceeded");
+       _("Game ended in a draw as end year exceeded"));
     gamelog(GAMELOG_NORMAL, _("Game ended in a draw as end year exceeded"));
     return TRUE;
   }
@@ -228,7 +228,7 @@
   team_iterate(pteam) {
     if (team_count_members_alive(pteam->id) == alive) {
       notify_conn(&game.est_connections, 
-          "Team victory to %s", pteam->name);
+          _("Team victory to %s"), pteam->name);
       gamelog(GAMELOG_NORMAL, _("Team victory to %s"), pteam->name);
       gamelog(GAMELOG_TEAM, "TEAMVICTORY %s", pteam->name);
       return TRUE;
@@ -238,13 +238,13 @@
   /* quit if only one player is left alive */
   if (alive == 1) {
     notify_conn(&game.est_connections, 
-        "Game ended in victory for %s", victor->name);
+        _("Game ended in victory for %s"), victor->name);
     gamelog(GAMELOG_NORMAL, _("Game ended in victory for %s"), 
         victor->name);
     gamelog(GAMELOG_TEAM, "SINGLEWINNER %s", victor->name);
     return TRUE;
   } else if (alive == 0) {
-    notify_conn(&game.est_connections, "Game ended in a draw");
+    notify_conn(&game.est_connections, _("Game ended in a draw"));
     gamelog(GAMELOG_NORMAL, _("Game ended in a draw"));
     gamelog(GAMELOG_TEAM, "NOWINNER");
     return TRUE;
@@ -637,7 +637,7 @@
     break;
   case REPORT_SERVER_OPTIONS: /* obsolete */
   default:
-    notify_conn(dest, "Game: request for unknown report (type %d)", type);
+    notify_conn(dest, _("Game: request for unknown report (type %d)"), type);
   }
 }
 
@@ -1171,7 +1171,7 @@
    */
   show_players(pconn);
 
-  /* notify_conn(dest, "Waiting for the server to start the game."); */
+  /* notify_conn(dest, _("Waiting for the server to start the game.")); */
   /* I would put this here, but then would need another message when
      the game is started. --dwp */
 }

[Prev in Thread] Current Thread [Next in Thread]