Skip to content

Commit

Permalink
Remove old translation files before pull
Browse files Browse the repository at this point in the history
  • Loading branch information
droidmonkey committed Jul 6, 2020
1 parent 9bf0d76 commit 44f2d3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion release-tool
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ merge() {
fi
git diff-index --quiet HEAD --
if [ $? -ne 0 ]; then
git add ./share/translations/*
git add -A ./share/translations/
logInfo "Committing changes..."
if [ "" == "$GPG_GIT_KEY" ]; then
git commit -m "Update translations"
Expand Down
7 changes: 6 additions & 1 deletion share/translations/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,17 @@ if $UPDATE; then
fi

if $PUSH; then
echo "Pushing English source files to Transifex..."
echo "Pushing source files to Transifex..."
tx push -s $@
echo
fi

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..."
tx pull -af --minimum-perc=40 $@
echo
Expand Down

0 comments on commit 44f2d3a

Please sign in to comment.