aboutsummaryrefslogtreecommitdiffstats
path: root/po
diff options
context:
space:
mode:
authorDaniel Kolesa <quaker66@gmail.com>2014-05-06 10:18:36 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-06-10 15:48:50 +0100
commitb8d867b67915bba5a834f263498ddf7ee650ba16 (patch)
tree486cf578853fb5d32a013c59672f2ec82f76cd45 /po
parentelua: initial code for xgettext.lua, a xgettext variant that supports lua (diff)
downloadefl-b8d867b67915bba5a834f263498ddf7ee650ba16.tar.gz
elua: use a xgettext wrapper
Diffstat (limited to 'po')
-rw-r--r--po/Makevars6
-rwxr-xr-xpo/xgettext_wrapper5
2 files changed, 11 insertions, 0 deletions
diff --git a/po/Makevars b/po/Makevars
index 22837aba49..b6ee6afb97 100644
--- a/po/Makevars
+++ b/po/Makevars
@@ -7,6 +7,12 @@ DOMAIN = $(PACKAGE)
subdir = po
top_builddir = ..
+# Save xgettext path
+XGETTEXT_FALLBACK := $(XGETTEXT)
+
+# Override xgettext with our own custom wrapper
+XGETTEXT = $(srcdir)/xgettext_wrapper $(XGETTEXT_FALLBACK)
+
# These options get passed to xgettext.
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --from-code=UTF-8 --foreign-user
diff --git a/po/xgettext_wrapper b/po/xgettext_wrapper
new file mode 100755
index 0000000000..9415f2f39b
--- /dev/null
+++ b/po/xgettext_wrapper
@@ -0,0 +1,5 @@
+#!/bin/sh
+XGETTEXT=$1
+shift
+$XGETTEXT "$@"
+exit $?