mirror of
https://github.com/minetest-mods/intllib.git
synced 2025-01-09 09:30:26 +01:00
Fixes to translation update script.
This commit is contained in:
parent
122d1a83cc
commit
5f00db5d95
@ -9,15 +9,19 @@ fi
|
|||||||
|
|
||||||
mkdir -p locale;
|
mkdir -p locale;
|
||||||
echo "Generating template..." >&2;
|
echo "Generating template..." >&2;
|
||||||
xgettext --from-code=UTF-8 -kS -kNS:1,2 -k_ \
|
xgettext --from-code=UTF-8 \
|
||||||
-o locale/template.pot "$@" \
|
--keyword=S \
|
||||||
|
--keyword=NS:1,2 \
|
||||||
|
--keyword=N_ \
|
||||||
|
--add-comments='Translators:' \
|
||||||
|
--add-location=file \
|
||||||
|
-o locale/template.pot \
|
||||||
|
"$@" \
|
||||||
|| exit;
|
|| exit;
|
||||||
|
|
||||||
cd locale;
|
find locale -name '*.po' -type f | while read -r file; do
|
||||||
|
|
||||||
for file in *.po; do
|
|
||||||
echo "Updating $file..." >&2;
|
echo "Updating $file..." >&2;
|
||||||
msgmerge --update "$file" template.pot;
|
msgmerge --update "$file" locale/template.pot;
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "DONE!" >&2;
|
echo "DONE!" >&2;
|
||||||
|
Loading…
Reference in New Issue
Block a user