Remove auto translate comments from translation strings

Cleanup imports like https://review.opendev.org/684510, we do not need
these auto import information.

Change-Id: I32a8058064e231336455d45badb7bea1283ffce4
This commit is contained in:
Andreas Jaeger 2019-09-25 08:50:28 +02:00
parent a987857df5
commit b1d63e2995

View File

@ -711,6 +711,10 @@ function compress_po_files {
local directory=$1
for i in $(find $directory -name *.po) ; do
# Remove auto translated comments, those are not needed.
# Do this first since it introduces empty lines, the msgattrib
# remove them.
sed -e 's|^# auto translated by TM merge.*$||' -i $i
msgattrib --translated --no-location --sort-output "$i" \
--output="${i}.tmp"
mv "${i}.tmp" "$i"