Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2005:
[Freeciv-Dev] (PR#12168) economy report i18n ("name")
Home

[Freeciv-Dev] (PR#12168) economy report i18n ("name")

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#12168) economy report i18n ("name")
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Tue, 8 Feb 2005 02:25:17 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12168 >

Some languages use two different words for "name".
This patch adds ?qalifier to help i18n economy report.
--
mateusz
Index: client/gui-gtk-2.0/repodlgs.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/repodlgs.c,v
retrieving revision 1.79
diff -u -r1.79 repodlgs.c
--- client/gui-gtk-2.0/repodlgs.c       8 Feb 2005 02:29:23 -0000       1.79
+++ client/gui-gtk-2.0/repodlgs.c       8 Feb 2005 10:21:22 -0000
@@ -620,14 +620,13 @@
 *****************************************************************/
 void create_economy_report_dialog(bool make_modal)
 {
-  static const char *titles[5] = {
-    N_("Type"),
-    N_("Name"),
-    N_("Count"),
-    N_("Cost"),
-    N_("U Total")
+  const char *titles[5] = {
+    _("Type"),
+    Q_("?Building:Name"),
+    _("Count"),
+    _("Cost"),
+    _("U Total")
   };
-  static bool titles_done;
   int i;
 
   static GType model_types[5] = {
@@ -641,8 +640,6 @@
 
   model_types[0] = GDK_TYPE_PIXBUF;
 
-  intl_slist(ARRAY_SIZE(titles), titles, &titles_done);
-  
   gui_dialog_new(&economy_dialog_shell, GTK_NOTEBOOK(top_notebook));
   gui_dialog_set_title(economy_dialog_shell, _("Economy"));
 

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#12168) economy report i18n ("name"), Mateusz Stefek <=