Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2006:
[Freeciv-Dev] (PR#15967) gui-gtk-2.0: bad i18n lines in gui_main.c
Home

[Freeciv-Dev] (PR#15967) gui-gtk-2.0: bad i18n lines in gui_main.c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#15967) gui-gtk-2.0: bad i18n lines in gui_main.c
From: "Egor Vyscrebentsov" <evyscr@xxxxxxxxx>
Date: Sat, 18 Mar 2006 03:19:35 -0800
Reply-to: bugs@xxxxxxxxxxx

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

Good daytime!

SVN trunk r11780

With GUI for client font options (#15530) we recieved several empty
  N_("")
lines. This is wrong, because gettext returns metainfo in this case
(as msgfmt says).

So while there is no text inside, line shouldn't be marked for
translation.

Quick fix is attached (but maybe it would be better to write
descriptions for font options)

-- 
Thanks, evyscr

Index: client/gui-gtk-2.0/gui_main.c
===================================================================
--- client/gui-gtk-2.0/gui_main.c       (revision 11780)
+++ client/gui-gtk-2.0/gui_main.c       (working copy)
@@ -194,62 +194,62 @@
   GEN_FONT_OPTION(font_city_label,
                  city_label,
                  N_("City Label"),
-                 N_(""),
+                 "",
                  COC_FONT),
   GEN_FONT_OPTION(font_notify_label,
                  notify_label,
                  N_("Notify Label"),
-                 N_(""),
+                 "",
                  COC_FONT),
   GEN_FONT_OPTION(font_spaceship_label,
                  spaceship_label,
                  N_("Spaceship Label"),
-                 N_(""),
+                 "",
                  COC_FONT),
   GEN_FONT_OPTION(font_help_label,
                  help_label,
                  N_("Help Label"),
-                 N_(""),
+                 "",
                  COC_FONT),
   GEN_FONT_OPTION(font_help_link,
                  help_link,
                  N_("Help Link"),
-                 N_(""),
+                 "",
                  COC_FONT),
   GEN_FONT_OPTION(font_help_text,
                  help_text,
                  N_("Help Text"),
-                 N_(""),
+                 "",
                  COC_FONT),
   GEN_FONT_OPTION(font_chatline,
                  chatline,
                  N_("Chatline Area"),
-                 N_(""),
+                 "",
                  COC_FONT),
   GEN_FONT_OPTION(font_beta_label,
                  beta_label,
                  N_("Beta Label"),
-                 N_(""),
+                 "",
                  COC_FONT),
   GEN_FONT_OPTION(font_small,
                  small_font,
                  N_("Small Font"),
-                 N_(""),
+                 "",
                  COC_FONT),
   GEN_FONT_OPTION(font_comment_label,
                  comment_label,
                  N_("Comment Label"),
-                 N_(""),
+                 "",
                  COC_FONT),
   GEN_FONT_OPTION(font_city_names,
                  city_names_font,
                  N_("City Names"),
-                 N_(""),
+                 "",
                  COC_FONT),
   GEN_FONT_OPTION(font_city_productions,
                  city_productions_font,
                  N_("City Productions"),
-                 N_(""),
+                 "",
                  COC_FONT)
 };
 const int num_gui_options = ARRAY_SIZE(gui_options);

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#15967) gui-gtk-2.0: bad i18n lines in gui_main.c, Egor Vyscrebentsov <=