diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2023-12-28 15:17:34 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2023-12-28 15:17:34 +0100 |
| commit | 6a9f862aa63cec53b542e2789454579baf0ae7f8 (patch) | |
| tree | 56ff7201fe5e428b6ea31967798a283469821d59 | |
| parent | e2215bce0fd56515f0ad30df0bc9f355dfe7f3d3 (diff) | |
| download | mullvadvpn-6a9f862aa63cec53b542e2789454579baf0ae7f8.tar.xz mullvadvpn-6a9f862aa63cec53b542e2789454579baf0ae7f8.zip | |
Prevent translation of Split tunneling in settings view
| -rw-r--r-- | gui/locales/messages.pot | 5 | ||||
| -rw-r--r-- | gui/src/renderer/components/Settings.tsx | 9 |
2 files changed, 2 insertions, 12 deletions
diff --git a/gui/locales/messages.pot b/gui/locales/messages.pot index 79d43d44b8..161ad721c7 100644 --- a/gui/locales/messages.pot +++ b/gui/locales/messages.pot @@ -1087,11 +1087,6 @@ msgctxt "settings-view" msgid "App version" msgstr "" -#. Navigation button to the 'Split tunneling' view -msgctxt "settings-view" -msgid "Split tunneling" -msgstr "" - msgctxt "settings-view" msgid "Support" msgstr "" diff --git a/gui/src/renderer/components/Settings.tsx b/gui/src/renderer/components/Settings.tsx index 26d40fb134..779814d3f4 100644 --- a/gui/src/renderer/components/Settings.tsx +++ b/gui/src/renderer/components/Settings.tsx @@ -1,6 +1,6 @@ import { useCallback } from 'react'; -import { colors } from '../../config.json'; +import { colors, strings } from '../../config.json'; import { messages } from '../../shared/gettext'; import { getDownloadUrl } from '../../shared/version'; import { useAppContext } from '../context'; @@ -131,12 +131,7 @@ function SplitTunnelingButton() { return ( <Cell.CellNavigationButton onClick={navigate}> - <Cell.Label> - { - // TRANSLATORS: Navigation button to the 'Split tunneling' view - messages.pgettext('settings-view', 'Split tunneling') - } - </Cell.Label> + <Cell.Label>{strings.splitTunneling}</Cell.Label> </Cell.CellNavigationButton> ); } |
