summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-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 {