diff options
author | Daniel Kolesa <quaker66@gmail.com> | 2014-05-06 10:18:36 +0100 |
---|---|---|
committer | Daniel Kolesa <d.kolesa@samsung.com> | 2014-06-10 15:48:50 +0100 |
commit | b8d867b67915bba5a834f263498ddf7ee650ba16 (patch) | |
tree | 486cf578853fb5d32a013c59672f2ec82f76cd45 /po | |
parent | 57ebf0e02c61cff37870413aec70f7914bd1885b (diff) |
elua: use a xgettext wrapper
Diffstat (limited to 'po')
-rw-r--r-- | po/Makevars | 6 | ||||
-rwxr-xr-x | po/xgettext_wrapper | 5 |
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) | |||
7 | subdir = po | 7 | subdir = po |
8 | top_builddir = .. | 8 | top_builddir = .. |
9 | 9 | ||
10 | # Save xgettext path | ||
11 | XGETTEXT_FALLBACK := $(XGETTEXT) | ||
12 | |||
13 | # Override xgettext with our own custom wrapper | ||
14 | XGETTEXT = $(srcdir)/xgettext_wrapper $(XGETTEXT_FALLBACK) | ||
15 | |||
10 | # These options get passed to xgettext. | 16 | # These options get passed to xgettext. |
11 | XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --from-code=UTF-8 --foreign-user | 17 | XGETTEXT_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 | ||
2 | XGETTEXT=$1 | ||
3 | shift | ||
4 | $XGETTEXT "$@" | ||
5 | exit $? | ||