Merge "Make transifex the only source of translations"
This commit is contained in:
commit
528c5af1d5
modules/jenkins/files/slave_scripts
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user