convert minetest names to voxelands
This commit is contained in:
parent
6dd0db19c1
commit
d208f0bae2
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Update/create minetest po files
|
||||
# Update/create voxelands po files
|
||||
|
||||
# an auxiliary function to abort processing with an optional error
|
||||
# message
|
||||
|
@ -47,13 +47,13 @@ cd ..
|
|||
# First thing first, update the .pot template. We place it in the po/
|
||||
# directory at the top level. You a recent enough xgettext that supports
|
||||
# --package-name
|
||||
potfile=po/minetest.pot
|
||||
xgettext --package-name=minetest -kN_ -kwgettext -F -n -o $potfile src/*.cpp src/*.h
|
||||
potfile=po/voxelands.pot
|
||||
xgettext --package-name=voxelands -kN_ -kwgettext -F -n -o $potfile src/*.cpp src/*.h
|
||||
|
||||
# Now iterate on all languages and create the po file if missing, or update it
|
||||
# if it exists already
|
||||
for lang in $langs ; do # note the missing quotes around $langs
|
||||
pofile=po/$lang/minetest.po
|
||||
pofile=po/$lang/voxelands.po
|
||||
if test -e $pofile; then
|
||||
echo "[$lang]: updating strings"
|
||||
msgmerge -F -U $pofile $potfile
|
||||
|
|
Loading…
Reference in New Issue