elua: use a xgettext wrapper

This commit is contained in:
Daniel Kolesa 2014-05-06 10:18:36 +01:00 committed by Daniel Kolesa
parent 57ebf0e02c
commit b8d867b679
2 changed files with 11 additions and 0 deletions

View File

@ -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

5
po/xgettext_wrapper Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
XGETTEXT=$1
shift
$XGETTEXT "$@"
exit $?