Commit 0524d2a0 authored by Vitaly Lipatov's avatar Vitaly Lipatov

po/Makefile: fix xgettext to extract only translatable strings

Replace -a flag (extract all strings) with proper --keyword options for echog and eval_gettext. This fixes extraction of shell keywords (if, then, fi, etc.) as translatable strings. Also fix encoding from koi8-r to utf-8 and expand SCRIPTLIST to all function modules.
parent 5eeabb5f
......@@ -5,17 +5,15 @@ MSGINIT = msginit
MSGCONV = msgconv
MSGFILTER = msgfilter
SCRIPTLIST = ../share/eterbuild/functions/common \
../share/eterbuild/functions/rpm ../share/eterbuild/functions/hasher ../share/eterbuild/functions/spec
SCRIPTLIST = $(wildcard ../share/eterbuild/functions/*)
all: etersoft-build-utils.mo
etersoft-build-utils.mo: etersoft-build-utils.po
$(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
etersoft-build-utils.pot: $(SCRIPTLIST) Makefile
ls -1 -d ../bin/* | xargs xgettext -a -o $@ -L Shell --from-code=koi8-r $^ || :
ls -1 -d ../bin/* | xargs xgettext --keyword=echog --keyword=echog:1 --keyword=eval_gettext -o $@ -L Shell --from-code=utf-8 $^ || :
etersoft-build-utils.po: etersoft-build-utils.pot
$(MSGMERGE_UPDATE) $@ $<
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment