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:
parent
a987857df5
commit
b1d63e2995
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user