diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2020-10-12 16:21:32 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2020-10-20 10:13:10 +0200 |
| commit | dbc7423f953a0b58019f3d0c5a8d5612b91f94e2 (patch) | |
| tree | 8cf06c53417f5b53c41811b30e9850e6b0a2fa97 /gui/src/shared | |
| parent | 4d2a8463c5c542c9c386ae0d4110a85dfabaf9cb (diff) | |
| download | mullvadvpn-dbc7423f953a0b58019f3d0c5a8d5612b91f94e2.tar.xz mullvadvpn-dbc7423f953a0b58019f3d0c5a8d5612b91f94e2.zip | |
Correctly position translator hints
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/notifications/connected.ts | 15 | ||||
| -rw-r--r-- | gui/src/shared/notifications/connecting.ts | 15 |
2 files changed, 18 insertions, 12 deletions
diff --git a/gui/src/shared/notifications/connected.ts b/gui/src/shared/notifications/connected.ts index 07f7f26ee9..901b386e97 100644 --- a/gui/src/shared/notifications/connected.ts +++ b/gui/src/shared/notifications/connected.ts @@ -13,12 +13,15 @@ export class ConnectedNotificationProvider implements SystemNotificationProvider let message = messages.pgettext('notifications', 'Secured'); const location = this.context.details.location?.hostname; if (location) { - // TRANSLATORS: The message showed when a server has been connected to. - // TRANSLATORS: Available placeholder: - // TRANSLATORS: %(location) - name of the server location we're connected to (e.g. "se-got-003") - message = sprintf(messages.pgettext('notifications', 'Connected to %(location)s'), { - location, - }); + message = sprintf( + // TRANSLATORS: The message showed when a server has been connected to. + // TRANSLATORS: Available placeholder: + // TRANSLATORS: %(location) - name of the server location we're connected to (e.g. "se-got-003") + messages.pgettext('notifications', 'Connected to %(location)s'), + { + location, + }, + ); } return { diff --git a/gui/src/shared/notifications/connecting.ts b/gui/src/shared/notifications/connecting.ts index ac8c049c67..822be2bc74 100644 --- a/gui/src/shared/notifications/connecting.ts +++ b/gui/src/shared/notifications/connecting.ts @@ -25,12 +25,15 @@ export class ConnectingNotificationProvider let message = messages.pgettext('notifications', 'Connecting'); const location = this.context.tunnelState.details?.location?.hostname; if (location) { - // TRANSLATORS: The message showed when a server is being connected to. - // TRANSLATORS: Available placeholder: - // TRANSLATORS: %(location) - name of the server location we're connecting to (e.g. "se-got-003") - message = sprintf(messages.pgettext('notifications', 'Connecting to %(location)s'), { - location, - }); + message = sprintf( + // TRANSLATORS: The message showed when a server is being connected to. + // TRANSLATORS: Available placeholder: + // TRANSLATORS: %(location) - name of the server location we're connecting to (e.g. "se-got-003") + messages.pgettext('notifications', 'Connecting to %(location)s'), + { + location, + }, + ); } return { |
