summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-04-20 12:55:50 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-04-20 13:16:45 (EDT)
commitf7ee773acd0b9e2bec95992d238cc479cd75497a (patch)
treec03fd031a23e69fb3ec09d090ec36104ae521f78 /src
parent3c8577cecc0001daf53526aa790e6638c7c50a9e (diff)
build: gettextize
Diffstat (limited to 'src')
-rw-r--r--src/i18n.h3
-rw-r--r--src/local.mk1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/i18n.h b/src/i18n.h
new file mode 100644
index 0000000..fbe5186
--- /dev/null
+++ b/src/i18n.h
@@ -0,0 +1,3 @@
+#include <libintl.h>
+
+#define _(msgid) gettext(msgid)
diff --git a/src/local.mk b/src/local.mk
index 808322f..e26508f 100644
--- a/src/local.mk
+++ b/src/local.mk
@@ -2,6 +2,7 @@ opkg_opk_SOURCES += \
%reldir%/defs.h \
%reldir%/gzip.c \
%reldir%/gzip.h \
+ %reldir%/i18n.h \
%reldir%/main.c \
%reldir%/opk.c \
%reldir%/opk.h \