Do not add obsolete translation entries
msgmerge keeps obsolete translation entries but we should filter them out. Do the filtering with msgattrib. Note this is only needed for log files, the other files are handled correctly since update_catalog has an option for this. This fixes the issue seen in glance: https://review.openstack.org/#/c/105069/ Change-Id: I956e4af59d7bbd6e90583bdb9412c9bf85b87019
This commit is contained in:
parent
b63a96079e
commit
c12db93703
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user