summaryrefslogtreecommitdiffstats
path: root/src/i18n.h
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-04-20 14:11:29 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-04-20 14:11:29 (EDT)
commit8865acffee909d1d528d30444b44dad359913c0a (patch)
tree37d411b283bcfc36c8b38dd42c5ee6f2924ec377 /src/i18n.h
parent3c8577cecc0001daf53526aa790e6638c7c50a9e (diff)
parent6daf35d0b533d28c34c69e8f678ce87b970c1acb (diff)
Merge branch 'feature/i18n'
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