Add wstrgettext to list of translation update keywords
parent
bec5d3ab22
commit
efeb372e95
|
@ -49,8 +49,13 @@ cd ..
|
|||
# --package-name
|
||||
potfile=po/minetest.pot
|
||||
xgettext --package-name=minetest \
|
||||
-kN_ -kwgettext -kfgettext \
|
||||
-F -n -o $potfile \
|
||||
--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'`
|
||||
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue