1
0
镜像自地址 https://github.com/luanti-org/luanti.git 已同步 2025-12-18 04:55:20 +01:00

Add wstrgettext to list of translation update keywords

这个提交包含在:
ShadowNinja
2015-01-21 14:12:14 -05:00
提交者 kwolekr
父节点 bec5d3ab22
当前提交 efeb372e95

查看文件

@@ -49,10 +49,15 @@ cd ..
# --package-name
potfile=po/minetest.pot
xgettext --package-name=minetest \
-kN_ -kwgettext -kfgettext \
-F -n -o $potfile \
`find src/ -name '*.cpp' -o -name '*.h'` \
`find builtin/ -name '*.lua'`
--sort-by-file \
--add-location \
--keyword=N_ \
--keyword=wgettext \
--keyword=fgettext \
--keyword=wstrgettext \
--output $potfile \
`find src/ -name '*.cpp' -o -name '*.h'` \
`find builtin/ -name '*.lua'`
# Now iterate on all languages and create the po file if missing, or update it
# if it exists already
@@ -60,10 +65,10 @@ for lang in $langs ; do # note the missing quotes around $langs
pofile=po/$lang/minetest.po
if test -e $pofile; then
echo "[$lang]: updating strings"
msgmerge -F -U $pofile $potfile
msgmerge --update --sort-by-file $pofile $potfile
else
# This will ask for the translator identity
echo "[$lang]: NEW strings"
msginit -l $lang -o $pofile -i $potfile
msginit --locale=$lang --output-file=$pofile --input=$potfile
fi
done