diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2019-08-15 14:36:41 +0300 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2019-08-16 15:21:07 +0300 |
| commit | 3262edf3c60befe23a89ea64d4b47aee38fc06d1 (patch) | |
| tree | 5ed9ad032753b0daef7f061718543b08826f1c5f | |
| parent | 9b49bf31659c8020fdc1f722f58065174c2a1181 (diff) | |
| download | mullvadvpn-3262edf3c60befe23a89ea64d4b47aee38fc06d1.tar.xz mullvadvpn-3262edf3c60befe23a89ea64d4b47aee38fc06d1.zip | |
Localize "Invalid account number" error
| -rw-r--r-- | gui/locales/messages.pot | 11 | ||||
| -rw-r--r-- | gui/src/main/index.ts | 6 |
2 files changed, 16 insertions, 1 deletions
diff --git a/gui/locales/messages.pot b/gui/locales/messages.pot index 24dde8b1bc..b7c2f8a411 100644 --- a/gui/locales/messages.pot +++ b/gui/locales/messages.pot @@ -8,6 +8,9 @@ msgstr "" msgid "CREATING SECURE CONNECTION" msgstr "" +msgid "Invalid account number" +msgstr "" + msgid "SECURE CONNECTION" msgstr "" @@ -273,6 +276,10 @@ msgid "Failed to apply firewall rules. The device might currently be unsecured" msgstr "" msgctxt "in-app-notifications" +msgid "Failed to resolve host of custom tunnel. Consider changing the settings" +msgstr "" + +msgctxt "in-app-notifications" msgid "Failed to set system DNS server" msgstr "" @@ -323,6 +330,10 @@ msgctxt "in-app-notifications" msgid "UPDATE AVAILABLE" msgstr "" +msgctxt "in-app-notifications" +msgid "WireGuard key not published to our servers. You can manage your key in Advanced settings." +msgstr "" + #. The in-app banner displayed to the user when the running app becomes unsupported. #. Available placeholders: #. %(version)s - the newest available version of the app diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index 54cf11ed05..d7e13615f9 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -1037,7 +1037,11 @@ class ApplicationMain { } catch (error) { log.error(`Failed to login: ${error.message}`); - throw error; + if (error instanceof InvalidAccountError) { + throw Error(messages.gettext('Invalid account number')); + } else { + throw error; + } } } |
