diff options
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/package.json | 2 | ||||
| -rwxr-xr-x | gui/scripts/update-translations.sh | 20 |
2 files changed, 1 insertions, 21 deletions
diff --git a/gui/package.json b/gui/package.json index 043bc8fa08..a144a344a9 100644 --- a/gui/package.json +++ b/gui/package.json @@ -88,7 +88,7 @@ "check-format": "yarn run private:format --list-different", "develop": "cross-env run-s private:copy-assets private:watch", "test": "electron-mocha --renderer -R spec --require ts-node/register --require-main ts-node/register --require-main \"test/setup/main.ts\" --preload \"test/setup/renderer.ts\" \"test/*.spec.ts\" \"test/**/*.spec.ts\" \"test/**/*.spec.tsx\" || true", - "update-translations": "node scripts/extract-translations && ./scripts/update-translations.sh", + "update-translations": "node scripts/extract-translations", "pack:mac": "run-s build private:pack:mac private:postbuild:mac", "pack:win": "run-s build private:pack:win", "pack:linux": "run-s build private:pack:linux", diff --git a/gui/scripts/update-translations.sh b/gui/scripts/update-translations.sh deleted file mode 100755 index db9d5e7b74..0000000000 --- a/gui/scripts/update-translations.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# This script creates or updates the existing gettext catalogues using the POT template located -# under locales/messages.pot - -SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -ROOT_DIR=$( dirname $SCRIPT_DIR ) -POT_FILE="$ROOT_DIR/locales/messages.pot" - -for PO_FILE_DIR in $ROOT_DIR/locales/* ; do - if [ -d $PO_FILE_DIR ] ; then - LOCALE=$( basename $PO_FILE_DIR ) - PO_FILE="$PO_FILE_DIR/messages-$LOCALE.po" - - if [ -f $PO_FILE ] ; then - echo "Update $PO_FILE" - msgmerge --no-fuzzy-matching --update $PO_FILE $POT_FILE - fi - fi -done |
