Translation jobs should check for existing .po files

This change adds a simple if/then statement to check for existing .po files
before it extracts messages in propose_translation_update.sh and
upstream_translation_update.sh

Change-Id: I598bdef21f617207a19e6c5fc32924a6e544fc3b
Reviewed-on: https://review.openstack.org/14958
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
Matthew Wagoner 2012-10-29 08:17:29 -04:00 committed by Jenkins
parent dbf0221db6
commit f4c3264f20
2 changed files with 10 additions and 4 deletions

View File

@ -35,8 +35,11 @@ tx set --auto-local -r ${PROJECT}.${PROJECT}-translations "${PROJECT}/locale/<la
tx pull -a
# Update the .pot file
python setup.py extract_messages
# Use updated .pot file to update translations
python setup.py update_catalog
if [ find ${PROJECT}/locale -name '*.po' ]
then
# Use updated .pot file to update translations
python setup.py update_catalog
fi
# Add all changed files to git
git add $PROJECT/locale/*

View File

@ -18,8 +18,11 @@ tx set --auto-local -r ${PROJECT}.${PROJECT}-translations "${PROJECT}/locale/<la
tx pull -a
# Update the .pot file
python setup.py extract_messages
# Use updated .pot file to update translations
python setup.py update_catalog
if [ find ${PROJECT}/locale -name '*.po' ]
then
# Use updated .pot file to update translations
python setup.py update_catalog
fi
# Add all changed files to git
git add $PROJECT/locale/*