summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2020-10-12 16:21:32 +0200
committerOskar Nyberg <oskar@mullvad.net>2020-10-20 10:13:10 +0200
commitdbc7423f953a0b58019f3d0c5a8d5612b91f94e2 (patch)
tree8cf06c53417f5b53c41811b30e9850e6b0a2fa97 /gui/src
parent4d2a8463c5c542c9c386ae0d4110a85dfabaf9cb (diff)
downloadmullvadvpn-dbc7423f953a0b58019f3d0c5a8d5612b91f94e2.tar.xz
mullvadvpn-dbc7423f953a0b58019f3d0c5a8d5612b91f94e2.zip
Correctly position translator hints
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/shared/notifications/connected.ts15
-rw-r--r--gui/src/shared/notifications/connecting.ts15
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 {