aboutsummaryrefslogtreecommitdiff
path: root/assets/blender/locomotive.blend
blob: 8fd605962b9f1b25cfeae8e5e92de89856c805e9 (plain)
blob size (448KB) exceeds display size limit (100KB).
id='n23' href='#n23'>23 24 25
#! /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_ \
		--keyword=F \
		--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