summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-20 10:31:31 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-20 10:31:31 (EST)
commit74a834dc733cb43ed7e77cc456e78ca2d706e6c1 (patch)
treeaa87df7253ceb2e4185349bac42fb2cd94d09d12
parent9efa3b5b1d699d145d81936e8fec6acc2ef850d3 (diff)
downloadmarquee-74a834dc733cb43ed7e77cc456e78ca2d706e6c1.zip
marquee-74a834dc733cb43ed7e77cc456e78ca2d706e6c1.tar.gz
marquee-74a834dc733cb43ed7e77cc456e78ca2d706e6c1.tar.bz2
src/i18n.h: New header
-rw-r--r--src/i18n.h9
-rw-r--r--src/local.mk1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/i18n.h b/src/i18n.h
new file mode 100644
index 0000000..d4a8474
--- /dev/null
+++ b/src/i18n.h
@@ -0,0 +1,9 @@
+/*
+ * gettext support macros
+ */
+
+#include <glib.h>
+#include <glib/gi18n.h>
+
+#define P_(String) gettext(String)
+#define PL_(StringS, StringP, N) ngettext(StringS, StringP, N)
diff --git a/src/local.mk b/src/local.mk
index e259c4a..ee0be5e 100644
--- a/src/local.mk
+++ b/src/local.mk
@@ -3,6 +3,7 @@ marquee_SOURCES += \
%reldir%/application.h \
%reldir%/download.c \
%reldir%/download.h \
+ %reldir%/i18n.h \
%reldir%/main.c \
%reldir%/notebook.c \
%reldir%/notebook.h \