summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2019-03-15 16:48:44 +0100
committerAndrej Mihajlov <and@mullvad.net>2019-03-18 15:21:51 +0100
commit19b8d4bb50347a76c3bb422c736b772ac6e23902 (patch)
tree744452260e386b3d4498828ba9cb5323f4603462
parent9237be793f555b9795c2baeb04687c805ac21dfe (diff)
downloadmullvadvpn-19b8d4bb50347a76c3bb422c736b772ac6e23902.tar.xz
mullvadvpn-19b8d4bb50347a76c3bb422c736b772ac6e23902.zip
Remove msgmerge script since crowdin does this for us
-rw-r--r--gui/package.json2
-rwxr-xr-xgui/scripts/update-translations.sh20
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