mirror of
https://github.com/minetest-mods/intllib.git
synced 2025-01-24 00:40:18 +01:00
Fix and Add support for SS and SNS xgettext tools
This commit is contained in:
parent
8f92aed533
commit
ee8ea4b5ff
@ -17,8 +17,7 @@ set msgmerge=%gtprefix%msgmerge.exe
|
|||||||
|
|
||||||
md locale > nul 2>&1
|
md locale > nul 2>&1
|
||||||
echo Generating template... 1>&2
|
echo Generating template... 1>&2
|
||||||
echo %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 %*
|
||||||
%xgettext% --from-code=UTF-8 -kS -kNS:1,2 -k_ -o locale/template.pot %*
|
|
||||||
if %ERRORLEVEL% neq 0 goto done
|
if %ERRORLEVEL% neq 0 goto done
|
||||||
|
|
||||||
cd locale
|
cd locale
|
||||||
|
@ -11,7 +11,9 @@ mkdir -p locale;
|
|||||||
echo "Generating template..." >&2;
|
echo "Generating template..." >&2;
|
||||||
xgettext --from-code=UTF-8 \
|
xgettext --from-code=UTF-8 \
|
||||||
--keyword=S \
|
--keyword=S \
|
||||||
|
--keyword=SS:2 \
|
||||||
--keyword=NS:1,2 \
|
--keyword=NS:1,2 \
|
||||||
|
--keyword=SNS:2,3 \
|
||||||
--keyword=N_ \
|
--keyword=N_ \
|
||||||
--add-comments='Translators:' \
|
--add-comments='Translators:' \
|
||||||
--add-location=file \
|
--add-location=file \
|
||||||
|
Loading…
Reference in New Issue
Block a user