summaryrefslogtreecommitdiffstats
path: root/xcftools.h
diff options
context:
space:
mode:
Diffstat (limited to 'xcftools.h')
-rw-r--r--xcftools.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/xcftools.h b/xcftools.h
index 1eb31cc..3bcb57c 100644
--- a/xcftools.h
+++ b/xcftools.h
@@ -24,8 +24,14 @@
#include <stddef.h>
#include <stdio.h>
-/* Change to gettext for l10n */
+#if defined(HAVE_GETTEXT) && defined(ENABLE_NLS)
+#include <libintl.h>
+#define _(s) gettext(s)
+void nls_init(void);
+#else
#define _(s) (s)
+#define nls_init() (void)0
+#endif
#define N_(s) (s)
#if HAVE_INTTYPES_H