diff options
| author | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-03-04 15:14:18 +0100 |
|---|---|---|
| committer | Markus Pettersson <markus.pettersson@mullvad.net> | 2025-03-10 10:14:19 +0100 |
| commit | 4d01f5c668116cb9a27899ee5ec5ea8eabd8f806 (patch) | |
| tree | 85fb6ee54da4e197e2795a23710458800d326268 | |
| parent | 4f1f5fd04554785d3aafde869c6439256c3ba053 (diff) | |
| download | mullvadvpn-4d01f5c668116cb9a27899ee5ec5ea8eabd8f806.tar.xz mullvadvpn-4d01f5c668116cb9a27899ee5ec5ea8eabd8f806.zip | |
Remove mention of "Automatic" in tunnel protocol translations
Also add TRANSLATORS comment to the changed
translations.
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/renderer/components/DaitaSettings.tsx | 11 | ||||
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/renderer/components/MultihopSettings.tsx | 11 |
2 files changed, 16 insertions, 6 deletions
diff --git a/desktop/packages/mullvad-vpn/src/renderer/components/DaitaSettings.tsx b/desktop/packages/mullvad-vpn/src/renderer/components/DaitaSettings.tsx index 38de8d3ff1..477f9f3f45 100644 --- a/desktop/packages/mullvad-vpn/src/renderer/components/DaitaSettings.tsx +++ b/desktop/packages/mullvad-vpn/src/renderer/components/DaitaSettings.tsx @@ -273,14 +273,19 @@ function DirectOnlyModalMessage() { } function featureUnavailableMessage() { - const automatic = messages.gettext('Automatic'); const tunnelProtocol = messages.pgettext('vpn-settings-view', 'Tunnel protocol'); return sprintf( messages.pgettext( + // TRANSLATORS: Informs the user that the the feature is only available when WireGuard + // TRANSLATORS: is selected. + // TRANSLATORS: Available placeholders: + // TRANSLATORS: %(wireguard)s - will be replaced with WireGuard + // TRANSLATORS: %(tunnelProtocol)s - the name of the tunnel protocol setting + // TRANSLATORS: %(setting)s - the name of the setting 'wireguard-settings-view', - 'Switch to “%(wireguard)s” or “%(automatic)s” in Settings > %(tunnelProtocol)s to make %(setting)s available.', + 'Switch to “%(wireguard)s” in Settings > %(tunnelProtocol)s to make %(setting)s available.', ), - { wireguard: strings.wireguard, automatic, tunnelProtocol, setting: strings.daita }, + { wireguard: strings.wireguard, tunnelProtocol, setting: strings.daita }, ); } diff --git a/desktop/packages/mullvad-vpn/src/renderer/components/MultihopSettings.tsx b/desktop/packages/mullvad-vpn/src/renderer/components/MultihopSettings.tsx index f2681f9614..87ce98f6c8 100644 --- a/desktop/packages/mullvad-vpn/src/renderer/components/MultihopSettings.tsx +++ b/desktop/packages/mullvad-vpn/src/renderer/components/MultihopSettings.tsx @@ -106,15 +106,20 @@ function MultihopSetting() { } function featureUnavailableMessage() { - const automatic = messages.gettext('Automatic'); const tunnelProtocol = messages.pgettext('vpn-settings-view', 'Tunnel protocol'); const multihop = messages.pgettext('wireguard-settings-view', 'Multihop'); return sprintf( messages.pgettext( + // TRANSLATORS: Informs the user that the the feature is only available when WireGuard + // TRANSLATORS: is selected. + // TRANSLATORS: Available placeholders: + // TRANSLATORS: %(wireguard)s - will be replaced with WireGuard + // TRANSLATORS: %(tunnelProtocol)s - the name of the tunnel protocol setting + // TRANSLATORS: %(setting)s - the name of the setting 'wireguard-settings-view', - 'Switch to “%(wireguard)s” or “%(automatic)s” in Settings > %(tunnelProtocol)s to make %(setting)s available.', + 'Switch to “%(wireguard)s” in Settings > %(tunnelProtocol)s to make %(setting)s available.', ), - { wireguard: strings.wireguard, automatic, tunnelProtocol, setting: multihop }, + { wireguard: strings.wireguard, tunnelProtocol, setting: multihop }, ); } |
