i18n: reduce noise-only commits from Transifex
This commit is contained in:
parent
75b5303b49
commit
4885b4afec
@ -10,16 +10,22 @@ 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 <groot@kde.org>' --message='[core] Automatic merge of Transifex translations' | true
|
git commit --author='Calamares CI <groot@kde.org>' --message='[core] Automatic merge of Transifex translations' | true
|
||||||
|
|
||||||
|
# Transifex updates the PO-Created timestamp also when nothing interesting
|
||||||
|
# has happened, so drop the files which have just 1 line changed (the
|
||||||
|
# PO-Created line). This applies only to modules which use po-files.
|
||||||
|
git diff --numstat src/modules | awk '($1==1 && $2==1){print $3}' | xargs git checkout --
|
||||||
|
|
||||||
for MODULE_DIR in `find src/modules -maxdepth 1 -mindepth 1 -type d`; do
|
for MODULE_DIR in `find src/modules -maxdepth 1 -mindepth 1 -type d`; do
|
||||||
FILES=(${MODULE_DIR}/*.py)
|
FILES=(${MODULE_DIR}/*.py)
|
||||||
if [ ${#FILES[@]} -gt 0 ]; then
|
if [ ${#FILES[@]} -gt 0 ]; then
|
||||||
MODULE_NAME=$(basename ${MODULE_DIR})
|
MODULE_NAME=$(basename ${MODULE_DIR})
|
||||||
if [ -d ${MODULE_DIR}/lang ]; then
|
if [ -d ${MODULE_DIR}/lang ]; then
|
||||||
# Convert PO files to MO files
|
# Convert PO files to MO files
|
||||||
for POFILE in `find . -name "*.po"` ; do
|
for POFILE in `find ${MODULE_DIR} -name "*.po"` ; do
|
||||||
msgfmt -o ${POFILE/.po/.mo} $POFILE
|
msgfmt -o ${POFILE/.po/.mo} $POFILE
|
||||||
done
|
done
|
||||||
git add --verbose ${MODULE_DIR}/lang/*
|
git add --verbose ${MODULE_DIR}/lang/*
|
||||||
|
Loading…
Reference in New Issue
Block a user