Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2003:
[Freeciv-Dev] (PR#4433) Some missing i18n
Home

[Freeciv-Dev] (PR#4433) Some missing i18n

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#4433) Some missing i18n
From: "mateusz stefek" <matusik_s@xxxxx>
Date: Mon, 23 Jun 2003 05:26:02 -0700
Reply-to: rt@xxxxxxxxxxxxxx

It's in the patch

--
mateusz
? autom4te-2.5x.cache
Index: client/gui-gtk-2.0/wldlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/wldlg.c,v
retrieving revision 1.23
diff -u -r1.23 wldlg.c
--- client/gui-gtk-2.0/wldlg.c  2003/05/18 16:19:29     1.23
+++ client/gui-gtk-2.0/wldlg.c  2003/06/07 15:35:25
@@ -985,7 +985,7 @@
   g_signal_connect(button, "clicked",
                   G_CALLBACK(help_callback), ptr);
 
-  button = gtk_button_new_with_mnemonic("Chan_ge Production");
+  button = gtk_button_new_with_mnemonic(_("Chan_ge Production"));
   gtk_container_add(GTK_CONTAINER(bbox), button);
   g_signal_connect(button, "clicked",
                   G_CALLBACK(change_callback), ptr);
Index: client/gui-win32/repodlgs.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-win32/repodlgs.c,v
retrieving revision 1.27
diff -u -r1.27 repodlgs.c
--- client/gui-win32/repodlgs.c 2003/04/04 15:47:48     1.27
+++ client/gui-win32/repodlgs.c 2003/06/07 15:35:50
@@ -91,7 +91,7 @@
 {
  
   char text[512], rate[128];
-  int i, hist, id, turns_to_advance;
+  int i, hist, id, turns_to_advance, steps;
   char *report_title;
 
   if (!science_dlg) return;            
@@ -156,10 +156,11 @@
                           id);
       
     }
-  }   
-  my_snprintf(text, sizeof(text), _("(%d steps)"),
-             num_unknown_techs_for_goal(game.player_ptr,
-                                        game.player_ptr->ai.tech_goal));
+  }
+  steps = num_unknown_techs_for_goal(game.player_ptr,
+                                     game.player_ptr->ai.tech_goal);
+  my_snprintf(text, sizeof(text), PL_("(%d step)","(%d steps)" steps), 
+                                  steps);
   SetWindowText(GetDlgItem(science_dlg,ID_SCIENCE_STEPS),text);
   fcwin_redo_layout(science_dlg);
 }
@@ -172,7 +173,7 @@
                                  WPARAM wParam,
                                  LPARAM lParam)
 {
-  int to;
+  int to, steps;
   switch(message)
     {
     case WM_CREATE:
@@ -216,8 +217,10 @@
              char text[512];
              struct packet_player_request packet;
              to=ComboBox_GetItemData(GetDlgItem(hWnd,ID_SCIENCE_GOAL),to);
-             my_snprintf(text, sizeof(text), _("(%d steps)"),
-                         num_unknown_techs_for_goal(game.player_ptr, to));
+             steps = num_unknown_techs_for_goal(game.player_ptr, to);
+             my_snprintf(text, sizeof(text), 
+                         PL_("(%d step)", "(%d steps)", steps),
+                         steps);
              SetWindowText(GetDlgItem(hWnd,ID_SCIENCE_STEPS),text);       
              packet.tech=to;
              send_packet_player_request(&aconnection, &packet, 
Index: server/savegame.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/savegame.c,v
retrieving revision 1.118
diff -u -r1.118 savegame.c
--- server/savegame.c   2003/05/31 16:22:15     1.118
+++ server/savegame.c   2003/06/07 15:36:23
@@ -723,8 +723,8 @@
   players_iterate(aplayer) {
     if (pplayers_allied(plr, aplayer)
         && !pplayer_can_ally(plr, aplayer)) {
-      freelog(LOG_ERROR, "Illegal alliance structure detected: "
-              "%s's alliance to %s reduced to peace treaty.",
+      freelog(LOG_ERROR, _("Illegal alliance structure detected: "
+              "%s's alliance to %s reduced to peace treaty."),
               plr->name, aplayer->name);
       plr->diplstates[aplayer->player_no].type = DS_PEACE;
       aplayer->diplstates[plr->player_no].type = DS_PEACE;

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