Cleanup log translations
In the past we removed log translations only if there was another change
to remove them. We stopped log translations in Nov 2016 and some
projects still have them in their tree - let's remove them now properly
with the bot.
@@ -521,6 +521,12 @@ function filter_commits {
# the creation date, the version number, the revision date,
# name of last translator, comment lines, or diff file information.
REAL_CHANGE=0
+ # Always remove obsolete log level translations.
+ for f in $(git diff --cached --name-only --diff-filter=D); do
+ if [[ $f =~ -log-(critical|error|info|warning).po$ ]] ; then
+ REAL_CHANGE=1
+ fi
+ done
# Don't iterate over deleted files
for f in $(git diff --cached --name-only --diff-filter=AM); do
# It's ok if the grep fails
