Pull all catalogs and push back to git.
This commit is contained in:
parent
256a629ece
commit
e67abde6f7
18
ci/txpull.sh
18
ci/txpull.sh
@ -11,5 +11,21 @@ git config --global http.sslVerify false
|
|||||||
export QT_SELECT=5
|
export QT_SELECT=5
|
||||||
tx pull --force --source --all
|
tx pull --force --source --all
|
||||||
git add --verbose lang/calamares*.ts
|
git add --verbose lang/calamares*.ts
|
||||||
git commit --author='Calamares CI <teo@kde.org>' --message='Automatic merge of Transifex translations' | true
|
git commit --author='Calamares CI <teo@kde.org>' --message='[core] Automatic merge of Transifex translations' | true
|
||||||
|
|
||||||
|
for MODULE_DIR in `find src/modules -maxdepth 1 -mindepth 1 -type d`; do
|
||||||
|
FILES=(${MODULE_DIR}/*.py)
|
||||||
|
if [ ${#FILES[@]} -gt 0 ]; then
|
||||||
|
MODULE_NAME=$(basename ${MODULE_DIR})
|
||||||
|
if [ -d ${MODULE_DIR}/lang ]; then
|
||||||
|
# Convert PO files to MO files
|
||||||
|
for POFILE in `find . -name "*.po"` ; do
|
||||||
|
msgfmt -o ${POFILE/.po/.mo} $POFILE
|
||||||
|
done
|
||||||
|
git add --verbose ${MODULE_DIR}/lang/*
|
||||||
|
git commit --author='Calamares CI <teo@kde.org>' --message="[${MODULE_NAME}] Automatic merge of Transifex translations" | true
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
git push --set-upstream origin master
|
git push --set-upstream origin master
|
||||||
|
Loading…
Reference in New Issue
Block a user