From 19e84b070bdac449ecaced6df413f668dbe15822 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 3 May 2015 09:41:04 +0200 Subject: [PATCH] Fix translation steps Today's nova import had some file changes where only the POT-Creation-Date was changed which we don't need to import. With the new compression step, we need to filter out commits *after* the compression, otherwise counting is wrong. Change-Id: Ib8fe6ca5f77c805147b73fe94905c72ccf3369d4 --- jenkins/scripts/propose_translation_update.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/jenkins/scripts/propose_translation_update.sh b/jenkins/scripts/propose_translation_update.sh index f439fdd51a..2f9720bafd 100755 --- a/jenkins/scripts/propose_translation_update.sh +++ b/jenkins/scripts/propose_translation_update.sh @@ -74,9 +74,6 @@ done # between new files and files already under git control. git add $PROJECT/locale/* -# Filter out commits we do not want. -filter_commits - # Remove obsolete files. cleanup_po_files "$PROJECT" @@ -85,8 +82,12 @@ cleanup_po_files "$PROJECT" # number of untranslated strings. compress_po_files "$PROJECT" -# Some files were changed, add changed files again to git +# Some files were changed, add changed files again to git, so that we +# can run git diff properly. git add $PROJECT/locale/* +# Filter out commits we do not want. +filter_commits + # Propose patch to gerrit if there are changes. send_patch