Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2004:
[Freeciv-Dev] (PR#9336) Patch for translating some messages
Home

[Freeciv-Dev] (PR#9336) Patch for translating some messages

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9336) Patch for translating some messages
From: "Albert Astals Cid" <tsdgeos@xxxxxxxx>
Date: Sun, 11 Jul 2004 08:02:24 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9336 >

This patch translates messages in one dialog of the gtk2 client that were not 
beign translated, i think it is fine but a revision would not hurt.

Albert

? FreecivPatch
Index: gui-gtk-2.0/repodlgs.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/repodlgs.c,v
retrieving revision 1.50
diff -u -r1.50 repodlgs.c
--- gui-gtk-2.0/repodlgs.c      11 May 2004 17:52:25 -0000      1.50
+++ gui-gtk-2.0/repodlgs.c      11 Jul 2004 13:51:57 -0000
@@ -1506,7 +1506,7 @@
   for (i = 0; i < num_options_categories; i++) {
     vbox[i] = gtk_vbox_new(FALSE, 2);
     gtk_container_set_border_width(GTK_CONTAINER(vbox[i]), 6);
-    label = gtk_label_new(options_categories[i]);
+    label = gtk_label_new(_(options_categories[i]));
     gtk_notebook_append_page(GTK_NOTEBOOK(book), vbox[i], label);
   }
 
@@ -1525,12 +1525,12 @@
     gtk_box_pack_start(GTK_BOX(hbox), ebox, FALSE, FALSE, 5);
 
     /* insert the option short help as the label into the event box */
-    label = gtk_label_new(settable_options[i].short_help);
+    label = gtk_label_new(_(settable_options[i].short_help));
     gtk_container_add(GTK_CONTAINER(ebox), label);
 
     /* if we have extra help, use that as a tooltip */
     if (settable_options[i].extra_help[0] != '\0') {
-      gtk_tooltips_set_tip(tips, ebox, settable_options[i].extra_help, NULL);
+      gtk_tooltips_set_tip(tips, ebox, _(settable_options[i].extra_help), 
NULL);
     }
 
     /* create the proper entry method depending on the type */

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9336) Patch for translating some messages, Albert Astals Cid <=