Merge "Only download nearly finished translated files"
This commit is contained in:
commit
6627977d18
@ -46,8 +46,10 @@ if [ ! -d .tx ] ; then
|
|||||||
fi
|
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
|
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
|
# Pull upstream translations of files that are at least 75 %
|
||||||
tx pull -a -f
|
# translated
|
||||||
|
tx pull -a -f --minimum-perc=75
|
||||||
|
|
||||||
# Update the .pot file
|
# Update the .pot file
|
||||||
python setup.py extract_messages
|
python setup.py extract_messages
|
||||||
PO_FILES=`find ${PROJECT}/locale -name '*.po'`
|
PO_FILES=`find ${PROJECT}/locale -name '*.po'`
|
||||||
|
@ -58,8 +58,9 @@ tx set --auto-local -r ${PROJECT}.openstack-dashboard-translations \
|
|||||||
"openstack_dashboard/locale/<lang>/LC_MESSAGES/django.po" --source-lang en \
|
"openstack_dashboard/locale/<lang>/LC_MESSAGES/django.po" --source-lang en \
|
||||||
--source-file openstack_dashboard/locale/en/LC_MESSAGES/django.po -t PO --execute
|
--source-file openstack_dashboard/locale/en/LC_MESSAGES/django.po -t PO --execute
|
||||||
|
|
||||||
# Pull all upstream translations
|
# Pull upstream translations of files that are at least 75 %
|
||||||
tx pull -a -f
|
# translated
|
||||||
|
tx pull -a -f --minimum-perc=75
|
||||||
|
|
||||||
# Invoke run_tests.sh to update the po files
|
# Invoke run_tests.sh to update the po files
|
||||||
# Or else, "../manage.py makemessages" can be used.
|
# Or else, "../manage.py makemessages" can be used.
|
||||||
|
@ -82,8 +82,18 @@ do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Pull all upstream translations
|
# Pull upstream translations of files that are at least 75 %
|
||||||
tx pull -a -f
|
# 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}/*
|
for FILE in ${DocFolder}/*
|
||||||
do
|
do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user