From 5891a90f3f3fe9f0efb0a5f76144bfbb28d5d2cc Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 28 Apr 2020 10:58:59 +0200 Subject: [PATCH] bin/update: Update intermediate catalogs --- bin/update | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/update b/bin/update index cebe27ee..057b512f 100755 --- a/bin/update +++ b/bin/update @@ -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