1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Run updatepo.sh

This commit is contained in:
updatepo.sh 2025-05-14 23:09:54 +02:00 committed by sfan5
parent 7c5a0d9057
commit d19640d57f
70 changed files with 2193 additions and 509 deletions

View file

@ -69,9 +69,12 @@ xgettext --package-name=luanti \
`find src/ -name '*.cpp' -o -name '*.h'` \
`find builtin/ -name '*.lua'`
# Gettext collects a bunch of bogus comments for the "Available commands: " string
# I couldn't figure out how to avoid that so get rid of them afterwards
sed '/^#\. ~<number>.*relative_to/,/^#: /{ /^#: /!d; }' -i $potfile
# Gettext collects a huge amount of bogus comments for the string
# "Available commands: ", and this not once but twice!
# I couldn't figure out how to avoid that so get rid of them afterwards:
for i in 1 2; do
sed '/^#\. ~= 0\.3$/,/^#: /{ /^#: /!d; }' -i $potfile
done
# Now iterate on all languages and create the po file if missing, or update it
# if it exists already