Merge "Make transifex the only source of translations"

This commit is contained in:
Jenkins 2014-04-08 08:26:43 +00:00 committed by Gerrit Code Review
commit 528c5af1d5
3 changed files with 2 additions and 27 deletions

@ -47,7 +47,7 @@ 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
tx pull -a -f
# Update the .pot file
python setup.py extract_messages
PO_FILES=`find ${PROJECT}/locale -name '*.po'`
@ -68,14 +68,4 @@ then
$COMMIT_MSG
EOF
git review -t transifex/translations
# Push .pot changes to transifex
tx --debug --traceback push -s
# Push translation changes to transifex
# Disable -e as we can live with failed translation pushes (failures
# occur when a translation file has no translations in it not really
# error worthy but they occur)
set +e
tx --debug --traceback push -t --skip
set -e
fi

@ -82,14 +82,8 @@ do
fi
done
if [ ! `git diff --cached --quiet HEAD --` ]
then
# Push .pot changes to transifex
tx --debug --traceback push -s
fi
# Pull all upstream translations
tx pull -a
tx pull -a -f
for FILE in ${DocFolder}/*
do

@ -28,8 +28,6 @@ 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
# Update the .pot file
python setup.py extract_messages
PO_FILES=`find ${PROJECT}/locale -name '*.po'`
@ -45,11 +43,4 @@ if [ ! `git diff-index --quiet HEAD --` ]
then
# Push .pot changes to transifex
tx --debug --traceback push -s
# Push translation changes to transifex
# Disable -e as we can live with failed translation pushes (failures
# occur when a translation file has no translations in it not really
# error worthy but they occur)
set +e
tx --debug --traceback push -t --skip
set -e
fi