homedecor_modpack/homedecor_common/tools/updatepo.sh
VanessaE ce3c77564c import model, textures, and some properties from googol's new_campfire mod
to freshen-up the look of "fancy fire"

(no, you still can't cook with this fire :P )
2020-06-03 00:13:01 -04:00

25 lines
558 B
Bash

#! /bin/bash
# To create a new translation:
# msginit --locale=ll_CC -o locale/ll_CC.po -i locale/template.pot
cd "$(dirname "${BASH_SOURCE[0]}")/..";
# Extract translatable strings.
xgettext --from-code=UTF-8 \
--language=Lua \
--sort-by-file \
--keyword=S \
--keyword=NS:1,2 \
--keyword=N_ \
--add-comments='Translators:' \
--add-location=file \
-o locale/template.pot \
$(find .. -name '*.lua')
# Update translations.
find locale -name '*.po' | while read -r file; do
echo $file
msgmerge --update $file locale/template.pot;
done