diff --git a/jenkins/scripts/common_translation_update.sh b/jenkins/scripts/common_translation_update.sh index ba3fc60e8a..289235c7ff 100644 --- a/jenkins/scripts/common_translation_update.sh +++ b/jenkins/scripts/common_translation_update.sh @@ -469,3 +469,14 @@ function compress_manual_po_files { mv "${i}.tmp" "$i" done } + +function pull_from_transifex { + # 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 +} diff --git a/jenkins/scripts/propose_translation_update.sh b/jenkins/scripts/propose_translation_update.sh index 8e74e9f4d9..b7834d7e20 100755 --- a/jenkins/scripts/propose_translation_update.sh +++ b/jenkins/scripts/propose_translation_update.sh @@ -31,14 +31,8 @@ setup_loglevel_vars # Project specific transifex setup for log translations. setup_loglevel_project "$PROJECT" -# 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 +# Pull updated translations from Transifex. +pull_from_transifex # 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 6e5d802a1d..2d999cd42c 100755 --- a/jenkins/scripts/propose_translation_update_django_openstack_auth.sh +++ b/jenkins/scripts/propose_translation_update_django_openstack_auth.sh @@ -25,14 +25,8 @@ setup_translation setup_django_openstack_auth -# 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 +# Pull updated translations from Transifex. +pull_from_transifex # Update the .pot file python setup.py extract_messages diff --git a/jenkins/scripts/propose_translation_update_horizon.sh b/jenkins/scripts/propose_translation_update_horizon.sh index 4bac98784b..3e2f871465 100755 --- a/jenkins/scripts/propose_translation_update_horizon.sh +++ b/jenkins/scripts/propose_translation_update_horizon.sh @@ -20,14 +20,8 @@ setup_review setup_translation setup_horizon -# 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 +# Pull updated translations from Transifex. +pull_from_transifex # Invoke run_tests.sh to update the po files # Or else, "../manage.py makemessages" can be used.