diff --git a/jenkins/scripts/propose_translation_update.sh b/jenkins/scripts/propose_translation_update.sh index 36466d21c3..7d0b6cdbdf 100755 --- a/jenkins/scripts/propose_translation_update.sh +++ b/jenkins/scripts/propose_translation_update.sh @@ -31,10 +31,15 @@ setup_loglevel_vars # Project specific transifex setup for log translations. setup_loglevel_project "$PROJECT" -# Pull upstream translations of files that are at least 75 % +# Download new files that are at least 75 % translated. +# Also downloads updates for existing files that are at least 75 % # translated. tx pull -a -f --minimum-perc=75 +# Pull upstream translations of all downloaded files but do not +# download new files. +tx pull -f + # Extract all messages from project, including log messages. extract_messages_log "$PROJECT" diff --git a/jenkins/scripts/propose_translation_update_django_openstack_auth.sh b/jenkins/scripts/propose_translation_update_django_openstack_auth.sh index f194748bd4..cd169e53b1 100755 --- a/jenkins/scripts/propose_translation_update_django_openstack_auth.sh +++ b/jenkins/scripts/propose_translation_update_django_openstack_auth.sh @@ -22,10 +22,15 @@ setup_review setup_django_openstack_auth -# Pull upstream translations of files that are at least 75 % -# translated +# Download new files that are at least 75 % translated. +# Also downloads updates for existing files that are at least 75 % +# translated. tx pull -a -f --minimum-perc=75 +# Pull upstream translations of all downloaded files but do not +# download new files. +tx pull -f + # Update the .pot file python setup.py extract_messages PO_FILES=`find openstack_auth/locale -name '*.po'` diff --git a/jenkins/scripts/propose_translation_update_horizon.sh b/jenkins/scripts/propose_translation_update_horizon.sh index 54608b2fe0..c98ff856fe 100755 --- a/jenkins/scripts/propose_translation_update_horizon.sh +++ b/jenkins/scripts/propose_translation_update_horizon.sh @@ -20,10 +20,15 @@ setup_review setup_translation setup_horizon -# Pull upstream translations of files that are at least 75 % -# translated +# Download new files that are at least 75 % translated. +# Also downloads updates for existing files that are at least 75 % +# translated. tx pull -a -f --minimum-perc=75 +# Pull upstream translations of all downloaded files but do not +# download new files. +tx pull -f + # Invoke run_tests.sh to update the po files # Or else, "../manage.py makemessages" can be used. ./run_tests.sh --makemessages -V diff --git a/jenkins/scripts/propose_translation_update_manuals.sh b/jenkins/scripts/propose_translation_update_manuals.sh index e4bccd5a68..99e216a322 100755 --- a/jenkins/scripts/propose_translation_update_manuals.sh +++ b/jenkins/scripts/propose_translation_update_manuals.sh @@ -29,9 +29,18 @@ setup_translation setup_manuals "$PROJECT" -# Pull upstream translations of files +# Download new files. +# Also downloads updates for existing files that are +# translated to a certain amount as configured in setup_manuals. +# The function setup_manuals will setup most files --minimum-perc=75 +# for most files. tx pull -a -f +# Pull upstream translations of all downloaded files but do not +# download new files. +# Use lower percentage here to update the existing files. +tx pull -f --minimum-perc=50 + # Add imported upstream translations to git for FILE in ${DocFolder}/*; do DOCNAME=${FILE#${DocFolder}/}