Fix and Add support for SS and SNS xgettext tools

This commit is contained in:
BrunoMine 2017-07-16 12:57:21 -03:00
parent 8f92aed533
commit ee8ea4b5ff
2 changed files with 3 additions and 2 deletions

View File

@ -17,8 +17,7 @@ set msgmerge=%gtprefix%msgmerge.exe
md locale > nul 2>&1
echo Generating template... 1>&2
echo %xgettext% --from-code=UTF-8 -kS -kNS:1,2 -k_ -o locale/template.pot %*
%xgettext% --from-code=UTF-8 -kS -kNS:1,2 -k_ -o locale/template.pot %*
echo %xgettext% --from-code=UTF-8 -kS -kSS:2 -kNS:1,2 -kSNS:2,3 -k_ -o locale/template.pot %*
if %ERRORLEVEL% neq 0 goto done
cd locale

View File

@ -11,7 +11,9 @@ mkdir -p locale;
echo "Generating template..." >&2;
xgettext --from-code=UTF-8 \
--keyword=S \
--keyword=SS:2 \
--keyword=NS:1,2 \
--keyword=SNS:2,3 \
--keyword=N_ \
--add-comments='Translators:' \
--add-location=file \