Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'share/translations/update.sh')
-rwxr-xr-xshare/translations/update.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/share/translations/update.sh b/share/translations/update.sh
index 134d7b996..c8b7da40c 100755
--- a/share/translations/update.sh
+++ b/share/translations/update.sh
@@ -32,10 +32,12 @@ elif [ "$1" == "update" ]; then
PULL=false
elif [ "$1" != "" ]; then
echo "Unknown command '${1}'"
- echo "Usage: $(basename $0) [update|pull|push]"
+ echo "Usage: $(basename $0) [update|pull|push] [additional tx options]"
exit 1
fi
+shift
+
cd "${BASEDIR}/../.."
if $UPDATE; then
@@ -47,18 +49,17 @@ if $UPDATE; then
LUPDATE=lupdate
fi
$LUPDATE -no-ui-lines -disable-heuristic similartext -locations none -no-obsolete src -ts share/translations/keepassx_en.ts
- $LUPDATE -no-ui-lines -disable-heuristic similartext -locations none -pluralonly src -ts share/translations/keepassx_en_plurals.ts
echo
fi
if $PUSH; then
echo "Pushing English source files to Transifex..."
- tx push -s
+ tx push -s $@
echo
fi
if $PULL; then
echo "Pulling translations from Transifex..."
- tx pull -af --minimum-perc=40
+ tx pull -af --minimum-perc=40 $@
echo
fi