Merge "Only download nearly finished translated files"

This commit is contained in:
Jenkins 2014-05-20 19:56:53 +00:00 committed by Gerrit Code Review
commit 6627977d18
3 changed files with 19 additions and 6 deletions

View File

@ -46,8 +46,10 @@ if [ ! -d .tx ] ; then
fi
tx set --auto-local -r ${PROJECT}.${PROJECT}-translations "${PROJECT}/locale/<lang>/LC_MESSAGES/${PROJECT}.po" --source-lang en --source-file ${PROJECT}/locale/${PROJECT}.pot -t PO --execute
# Pull all upstream translations
tx pull -a -f
# Pull upstream translations of files that are at least 75 %
# translated
tx pull -a -f --minimum-perc=75
# Update the .pot file
python setup.py extract_messages
PO_FILES=`find ${PROJECT}/locale -name '*.po'`

View File

@ -58,8 +58,9 @@ tx set --auto-local -r ${PROJECT}.openstack-dashboard-translations \
"openstack_dashboard/locale/<lang>/LC_MESSAGES/django.po" --source-lang en \
--source-file openstack_dashboard/locale/en/LC_MESSAGES/django.po -t PO --execute
# Pull all upstream translations
tx pull -a -f
# Pull upstream translations of files that are at least 75 %
# translated
tx pull -a -f --minimum-perc=75
# Invoke run_tests.sh to update the po files
# Or else, "../manage.py makemessages" can be used.

View File

@ -82,8 +82,18 @@ do
fi
done
# Pull all upstream translations
tx pull -a -f
# Pull upstream translations of files that are at least 75 %
# translated
tx pull -a -f --minimum-perc=75
# The common directory is used by the other guides, let's be more
# liberal here since teams might only translate the files used by a
# single guide. We use 8 % since that downloads the currently
# translated files.
if [ $PROJECT = "openstack-manuals" ] ; then
tx pull -f --minimum-perc=8 -r openstack-manuals-i18n.common
fi
for FILE in ${DocFolder}/*
do