summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
Diffstat (limited to 'po')
-rw-r--r--po/Makevars2
-rwxr-xr-xpo/xgettext_wrapper9
2 files changed, 8 insertions, 3 deletions
diff --git a/po/Makevars b/po/Makevars
index b6ee6afb97..0b56f80f30 100644
--- a/po/Makevars
+++ b/po/Makevars
@@ -11,7 +11,7 @@ top_builddir = ..
11XGETTEXT_FALLBACK := $(XGETTEXT) 11XGETTEXT_FALLBACK := $(XGETTEXT)
12 12
13# Override xgettext with our own custom wrapper 13# Override xgettext with our own custom wrapper
14XGETTEXT = $(srcdir)/xgettext_wrapper $(XGETTEXT_FALLBACK) 14XGETTEXT = $(srcdir)/xgettext_wrapper $(top_builddir) $(XGETTEXT_FALLBACK)
15 15
16# These options get passed to xgettext. 16# These options get passed to xgettext.
17XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --from-code=UTF-8 --foreign-user 17XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --from-code=UTF-8 --foreign-user
diff --git a/po/xgettext_wrapper b/po/xgettext_wrapper
index 9415f2f39b..d65c8d0959 100755
--- a/po/xgettext_wrapper
+++ b/po/xgettext_wrapper
@@ -1,5 +1,10 @@
1#!/bin/sh 1#!/bin/sh
2XGETTEXT=$1 2ELUAPATH=$1/src/bin/elua
3ELUA=${ELUAPATH}/elua
4LXGETTEXT=${ELUAPATH}/xgettext.lua
5export XGETTEXT=$2
6export EFL_RUN_IN_TREE=1
3shift 7shift
4$XGETTEXT "$@" 8shift
9$ELUA $LXGETTEXT "$@"
5exit $? 10exit $?