summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Grandin <grandinp@gmail.com>2018-10-14 20:36:48 -0700
committerPierre Grandin <grandinp@gmail.com>2018-10-14 20:36:48 -0700
commit48622044a0ca9751c80e22c1bc7717cbb1f5372f (patch)
tree2fc61770642ae6caae1d198ed99c1f4e8a733ed8
parentdc2985badedd268e1f3d6c215ebf6635f92cbbdb (diff)
downloadnavit-improve_i18n_handling.tar.gz
fix:i18n:remove extra whitespaces when importing translationsimprove_i18n_handling
-rw-r--r--scripts/import_translation.sh3
1 files changed, 3 insertions, 0 deletions
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