From 5c5989f1e5d3a05a2eaae45e0ee01520b80c8354 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 23 Apr 2015 21:22:59 +0200 Subject: [PATCH] Decrease PO files for python projects Remove untranslated strings and location information from PO files. The location information is still in the POT files as reference for easy regeneration using "msgmerge POTFILE POFILE -o COMPLETEPOFILE". This moves the git add command to the end since compress_po_files changes the files. Change-Id: I8d9f80276085ffe4dd614960457637330ca28370 --- jenkins/scripts/propose_translation_update.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/jenkins/scripts/propose_translation_update.sh b/jenkins/scripts/propose_translation_update.sh index 7d0b6cdbdf..b3f5769ef5 100755 --- a/jenkins/scripts/propose_translation_update.sh +++ b/jenkins/scripts/propose_translation_update.sh @@ -69,8 +69,6 @@ for level in $LEVELS ; do fi done -# Add all changed files to git. -git add $PROJECT/locale/* # Filter out commits we do not want. filter_commits @@ -78,5 +76,13 @@ filter_commits # Remove obsolete files. cleanup_po_files "$PROJECT" +# Compress downloaded po files, this needs to be done after +# cleanup_po_files since that function needs to have information the +# number of untranslated strings. +compress_po_files "$PROJECT" + +# Now add all changed files to git. +git add $PROJECT/locale/* + # Propose patch to gerrit if there are changes. send_patch