summaryrefslogtreecommitdiffstats
path: root/src/i18n.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/i18n.h')
-rw-r--r--src/i18n.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/i18n.h b/src/i18n.h
new file mode 100644
index 0000000..4d8ee76
--- /dev/null
+++ b/src/i18n.h
@@ -0,0 +1,11 @@
+#ifdef ENABLE_NLS
+
+#include <libintl.h>
+
+#define _(msgid) gettext(msgid)
+
+#else
+
+#define _(msgid) (msgid)
+
+#endif