diff --git a/modules/openstack_project/files/slave_scripts/propose_translation_update.sh b/modules/openstack_project/files/slave_scripts/propose_translation_update.sh index 1c33c54712..b85fbd23ef 100755 --- a/modules/openstack_project/files/slave_scripts/propose_translation_update.sh +++ b/modules/openstack_project/files/slave_scripts/propose_translation_update.sh @@ -51,6 +51,10 @@ for level in $LEVELS ; do msgmerge --update --no-fuzzy-matching $f \ --backup=none \ ${PROJECT}/locale/${PROJECT}-log-${level}.pot + # Remove obsolete entries + msgattrib --no-obsolete --force-po \ + --output-file=${f}.tmp ${f} + mv ${f}.tmp ${f} done fi done