[Goodies-commits] r4654 - in xfce4-dict/trunk: lib src

Enrico Troeger enrico at xfce.org
Tue Apr 22 21:11:05 CEST 2008


Author: enrico
Date: 2008-04-22 19:11:05 +0000 (Tue, 22 Apr 2008)
New Revision: 4654

Modified:
   xfce4-dict/trunk/lib/prefs.c
   xfce4-dict/trunk/src/xfce4-dict.c
Log:
Fix two other tranlation related string problems.


Modified: xfce4-dict/trunk/lib/prefs.c
===================================================================
--- xfce4-dict/trunk/lib/prefs.c	2008-04-22 19:11:01 UTC (rev 4653)
+++ xfce4-dict/trunk/lib/prefs.c	2008-04-22 19:11:05 UTC (rev 4654)
@@ -188,7 +188,7 @@
 	for (i = 0; web_dicts[i].label != NULL; i++)
 	{
 		offset = i % 2;
-		button = gtk_button_new_with_label(web_dicts[i].label);
+		button = gtk_button_new_with_label(_(web_dicts[i].label));
 		g_signal_connect(button, "clicked", G_CALLBACK(web_dict_button_clicked), web_dicts[i].url);
 		g_object_set_data(G_OBJECT(button), "web_entry", entry);
 		gtk_widget_show(button);

Modified: xfce4-dict/trunk/src/xfce4-dict.c
===================================================================
--- xfce4-dict/trunk/src/xfce4-dict.c	2008-04-22 19:11:01 UTC (rev 4653)
+++ xfce4-dict/trunk/src/xfce4-dict.c	2008-04-22 19:11:05 UTC (rev 4654)
@@ -18,18 +18,17 @@
  */
 
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <gtk/gtk.h>
-#include <glib/gi18n.h>
 #include <string.h>
 #include <stdlib.h>
 
 #include <libxfce4util/libxfce4util.h>
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
 #if HAVE_LOCALE_H
 # include <locale.h>
 #endif
@@ -52,7 +51,7 @@
 {
 #if GLIB_CHECK_VERSION(2,14,0)
 	/* Note for translators: run xfce4-dict --help and copy the help text for "--help" into this one */
-	{ "help", 'h', 0, G_OPTION_ARG_NONE, &show_help, _("Show help options"), NULL },
+	{ "help", 'h', 0, G_OPTION_ARG_NONE, &show_help, N_("Show help options"), NULL },
 #endif
 	{ "dict", 'd', 0, G_OPTION_ARG_NONE, &mode_dict, N_("Search the given text using a Dict server(RFC 2229)"), NULL },
 	{ "web", 'w', 0, G_OPTION_ARG_NONE, &mode_web, N_("Search the given text using a web-based search engine"), NULL },




More information about the Goodies-commits mailing list