bin/update: Update intermediate catalogs

This commit is contained in:
Johannes Meyer 2020-04-28 10:58:59 +02:00
parent b8b8ad779f
commit 5891a90f3f
1 changed files with 6 additions and 0 deletions

View File

@ -95,6 +95,12 @@ if [ -z "$CHANGES" ]; then
echo "No new messages found.";
git checkout icinga.pot;
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!";
# Working tree is left dirty as the following step creates a new pull request
fi