summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
7subdir = po 7subdir = po
8top_builddir = .. 8top_builddir = ..
9 9
10# Save xgettext path
11XGETTEXT_FALLBACK := $(XGETTEXT)
12
13# Override xgettext with our own custom wrapper
14XGETTEXT = $(srcdir)/xgettext_wrapper $(XGETTEXT_FALLBACK)
15
10# These options get passed to xgettext. 16# These options get passed to xgettext.
11XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --from-code=UTF-8 --foreign-user 17XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --from-code=UTF-8 --foreign-user
12 18
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 @@
1#!/bin/sh
2XGETTEXT=$1
3shift
4$XGETTEXT "$@"
5exit $?