summaryrefslogtreecommitdiff
path: root/plugins/gtkui/support.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gtkui/support.h')
-rw-r--r--plugins/gtkui/support.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/gtkui/support.h b/plugins/gtkui/support.h
index 2dea079c..a32649e5 100644
--- a/plugins/gtkui/support.h
+++ b/plugins/gtkui/support.h
@@ -9,6 +9,31 @@
#include <gtk/gtk.h>
/*
+ * Standard gettext macros.
+ */
+#ifdef ENABLE_NLS
+# include <libintl.h>
+# undef _
+# define _(String) dgettext (PACKAGE, String)
+# define Q_(String) g_strip_context ((String), gettext (String))
+# ifdef gettext_noop
+# define N_(String) gettext_noop (String)
+# else
+# define N_(String) (String)
+# endif
+#else
+# define textdomain(String) (String)
+# define gettext(String) (String)
+# define dgettext(Domain,Message) (Message)
+# define dcgettext(Domain,Message,Type) (Message)
+# define bindtextdomain(Domain,Directory) (Domain)
+# define _(String) (String)
+# define Q_(String) g_strip_context ((String), (String))
+# define N_(String) (String)
+#endif
+
+
+/*
* Public Functions.
*/