Translation download: Update all existing translations

Download translations for all languages that are in the repo.

this avoids the situation that a file gets downloaded with 75 %
translations and then not updated as contents changed and translations
do not catch up.

Change-Id: Ic3bc5fa2642aeaabee5d4c1e0c3764baed811a5d
This commit is contained in:
Andreas Jaeger 2014-10-15 10:43:10 +02:00
parent ef2852a0ac
commit a3f7d0caa7
4 changed files with 30 additions and 6 deletions

View File

@ -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"

View File

@ -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'`

View File

@ -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

View File

@ -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}/}