[Commits] clamav_plugin_gtk.c 1.1.2.6 1.1.2.7

ticho at claws-mail.org ticho at claws-mail.org
Fri Jan 6 15:20:41 CET 2012


Update of /home/claws-mail/plugins/clamd/src
In directory claws-mail:/tmp/cvs-serv8086/src

Modified Files:
      Tag: gtk2
	clamav_plugin_gtk.c 
Log Message:
2012-01-06 [ticho]	3.5.3cvs2

	* src/clamav_plugin_gtk.c
		Exclude "Plugins" string from translation, since it will be
		looked up from different gettext domain anyway.

Index: clamav_plugin_gtk.c
===================================================================
RCS file: /home/claws-mail/plugins/clamd/src/Attic/clamav_plugin_gtk.c,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -u -d -r1.1.2.6 -r1.1.2.7
--- clamav_plugin_gtk.c	2 Jan 2012 18:17:34 -0000	1.1.2.6
+++ clamav_plugin_gtk.c	6 Jan 2012 14:20:39 -0000	1.1.2.7
@@ -495,11 +495,19 @@
 	statusbar_print_all("%s", message);
 }
 
+/* Since we do not have regular gettext.h, but are relying on glib's i18n,
+ * we need to define this here. */
+#if ENABLE_NLS
+#  define D_(domain, str) dgettext(domain, str)
+#else
+#  define D_(domain, str) (str)
+#endif
+
 gint clamav_gtk_init(void)
 {
 	static gchar *path[3];
 
-	path[0] = dgettext("claws-mail", "Plugins");
+	path[0] = D_("claws-mail", "Plugins");
 	path[1] = _("Clam AntiVirus");
 	path[2] = NULL;
 



More information about the Commits mailing list