Remove old translation files before pull
This commit is contained in:
@@ -520,7 +520,7 @@ merge() {
|
|||||||
fi
|
fi
|
||||||
git diff-index --quiet HEAD --
|
git diff-index --quiet HEAD --
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
git add ./share/translations/*
|
git add -A ./share/translations/
|
||||||
logInfo "Committing changes..."
|
logInfo "Committing changes..."
|
||||||
if [ "" == "$GPG_GIT_KEY" ]; then
|
if [ "" == "$GPG_GIT_KEY" ]; then
|
||||||
git commit -m "Update translations"
|
git commit -m "Update translations"
|
||||||
|
|||||||
@@ -53,12 +53,17 @@ if $UPDATE; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if $PUSH; then
|
if $PUSH; then
|
||||||
echo "Pushing English source files to Transifex..."
|
echo "Pushing source files to Transifex..."
|
||||||
tx push -s $@
|
tx push -s $@
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if $PULL; then
|
if $PULL; then
|
||||||
|
echo "Removing stale translations..."
|
||||||
|
mv share/translations/keepassx_en.ts share/translations/keepassx_en.ts.bak
|
||||||
|
rm share/translations/*.ts
|
||||||
|
mv share/translations/keepassx_en.ts.bak share/translations/keepassx_en.ts
|
||||||
|
|
||||||
echo "Pulling translations from Transifex..."
|
echo "Pulling translations from Transifex..."
|
||||||
tx pull -af --minimum-perc=40 $@
|
tx pull -af --minimum-perc=40 $@
|
||||||
echo
|
echo
|
||||||
|
|||||||
Reference in New Issue
Block a user