update po scripts to fail fast
This commit is contained in:
parent
b11ebf93b2
commit
b4fcca8d92
|
@ -3,5 +3,5 @@ EXPORT_LANGS=("de" "es" "fr" "fi" "hy" "id" "ko" "nl" "pl" "pt_BR" "ru" "sk" "sv
|
||||||
|
|
||||||
for i in ${EXPORT_LANGS[@]}; do
|
for i in ${EXPORT_LANGS[@]}; do
|
||||||
echo "compiling $i.po..."
|
echo "compiling $i.po..."
|
||||||
mkdir -p "po/locale/$i/LC_MESSAGES/" && msgfmt "po/$i.po" -o "po/locale/$i/LC_MESSAGES/furnace.mo"
|
mkdir -p "po/locale/$i/LC_MESSAGES/" && msgfmt "po/$i.po" -o "po/locale/$i/LC_MESSAGES/furnace.mo" || exit 1
|
||||||
done
|
done
|
||||||
|
|
|
@ -19,9 +19,9 @@ cd po
|
||||||
for i in ${EXPORT_LANGS[@]}; do
|
for i in ${EXPORT_LANGS[@]}; do
|
||||||
if [ -e "$i".po ]; then
|
if [ -e "$i".po ]; then
|
||||||
echo "merging $i"".po..."
|
echo "merging $i"".po..."
|
||||||
msgmerge --backup=none -U "$i".po furnace.pot
|
msgmerge --backup=none -U "$i".po furnace.pot || exit 1
|
||||||
else
|
else
|
||||||
echo "creating $i"".po..."
|
echo "creating $i"".po..."
|
||||||
msginit -i furnace.pot -l "$i".UTF-8 --no-translator
|
msginit -i furnace.pot -l "$i".UTF-8 --no-translator || exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue