From 48622044a0ca9751c80e22c1bc7717cbb1f5372f Mon Sep 17 00:00:00 2001 From: Pierre Grandin Date: Sun, 14 Oct 2018 20:36:48 -0700 Subject: fix:i18n:remove extra whitespaces when importing translations --- scripts/import_translation.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/import_translation.sh b/scripts/import_translation.sh index d1d1f3a6c..fc4117847 100644 --- a/scripts/import_translation.sh +++ b/scripts/import_translation.sh @@ -56,6 +56,9 @@ for i in po/import_queue/*.po; do mv po/${po}.header po/${po}.in sed '1,/msgid ""/ d' ${i} >> po/${po}.in + # We remove extra whitespaces to make the sanity checks happy + sed -i -e 's/ *$//' po/${po}.in + git status git add po/${po}.in && rm $i git commit -m "Update:i18n:Updated ${lname} translation from launchpad" po/${po}.in -- cgit v1.2.1