mirror of
https://github.com/Icinga/L10n.git
synced 2025-07-31 01:34:20 +02:00
bin/update: Update intermediate catalogs
This commit is contained in:
parent
b8b8ad779f
commit
5891a90f3f
@ -95,6 +95,12 @@ if [ -z "$CHANGES" ]; then
|
|||||||
echo "No new messages found.";
|
echo "No new messages found.";
|
||||||
git checkout icinga.pot;
|
git checkout icinga.pot;
|
||||||
else
|
else
|
||||||
|
# Update intermediate (in-progress) catalogs
|
||||||
|
LOCALES=$(find . -mindepth 1 -maxdepth 1 -type d -regextype grep -regex '\./[a-z]\{2\}_[A-Z]\{2\}' -printf "%P ")
|
||||||
|
for locale_name in $LOCALES; do
|
||||||
|
msgmerge --update --backup=none --lang=$locale_name --sort-by-file $locale_name/LC_MESSAGES/icinga.po icinga.pot
|
||||||
|
done
|
||||||
|
|
||||||
echo "New messages found!";
|
echo "New messages found!";
|
||||||
# Working tree is left dirty as the following step creates a new pull request
|
# Working tree is left dirty as the following step creates a new pull request
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user