UX: rename "Do Not Disturb" to "Pause Notifications" (#19483)
We decided to rename the "Do Not Disturb" mode to "Pause Notifications". I am starting from changing strings on the client, that will update user interface. And I'm going to do renamings in frontend and backend code after some time.
This commit is contained in:
parent
4908a669e0
commit
2d628c80a1
|
@ -76,12 +76,12 @@
|
||||||
{{d-icon (if this.isInDoNotDisturb "toggle-on" "toggle-off")}}
|
{{d-icon (if this.isInDoNotDisturb "toggle-on" "toggle-off")}}
|
||||||
<span class="item-label">
|
<span class="item-label">
|
||||||
{{#if this.isInDoNotDisturb}}
|
{{#if this.isInDoNotDisturb}}
|
||||||
<span>{{i18n "do_not_disturb.label"}}</span>
|
<span>{{i18n "pause_notifications.label"}}</span>
|
||||||
{{#if this.showDoNotDisturbEndDate}}
|
{{#if this.showDoNotDisturbEndDate}}
|
||||||
{{format-age this.doNotDisturbDateTime}}
|
{{format-age this.doNotDisturbDateTime}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{i18n "do_not_disturb.label"}}
|
{{i18n "pause_notifications.label"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</span>
|
</span>
|
||||||
</DButton>
|
</DButton>
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
<DModalBody @title="do_not_disturb.title">
|
<DModalBody @title="pause_notifications.title">
|
||||||
<TapTileGrid @activeTile={{this.duration}} as |grid|>
|
<TapTileGrid @activeTile={{this.duration}} as |grid|>
|
||||||
<TapTile @class="do-not-disturb-tile" @tileId="30" @activeTile={{grid.activeTile}} @onChange={{action "setDuration"}}>
|
<TapTile @class="do-not-disturb-tile" @tileId="30" @activeTile={{grid.activeTile}} @onChange={{action "setDuration"}}>
|
||||||
{{i18n "do_not_disturb.options.half_hour"}}
|
{{i18n "pause_notifications.options.half_hour"}}
|
||||||
</TapTile>
|
</TapTile>
|
||||||
<TapTile @class="do-not-disturb-tile" @tileId="60" @activeTile={{grid.activeTile}} @onChange={{action "setDuration"}}>
|
<TapTile @class="do-not-disturb-tile" @tileId="60" @activeTile={{grid.activeTile}} @onChange={{action "setDuration"}}>
|
||||||
{{i18n "do_not_disturb.options.one_hour"}}
|
{{i18n "pause_notifications.options.one_hour"}}
|
||||||
</TapTile>
|
</TapTile>
|
||||||
<TapTile @class="do-not-disturb-tile" @tileId="120" @activeTile={{grid.activeTile}} @onChange={{action "setDuration"}}>
|
<TapTile @class="do-not-disturb-tile" @tileId="120" @activeTile={{grid.activeTile}} @onChange={{action "setDuration"}}>
|
||||||
{{i18n "do_not_disturb.options.two_hours"}}
|
{{i18n "pause_notifications.options.two_hours"}}
|
||||||
</TapTile>
|
</TapTile>
|
||||||
<TapTile @class="do-not-disturb-tile" @tileId="tomorrow" @activeTile={{grid.activeTile}} @onChange={{action "setDuration"}}>
|
<TapTile @class="do-not-disturb-tile" @tileId="tomorrow" @activeTile={{grid.activeTile}} @onChange={{action "setDuration"}}>
|
||||||
{{i18n "do_not_disturb.options.tomorrow"}}
|
{{i18n "pause_notifications.options.tomorrow"}}
|
||||||
</TapTile>
|
</TapTile>
|
||||||
</TapTileGrid>
|
</TapTileGrid>
|
||||||
|
|
||||||
<DButton @action={{action "navigateToNotificationSchedule"}} @label="do_not_disturb.set_schedule" />
|
<DButton @action={{action "navigateToNotificationSchedule"}} @label="pause_notifications.set_schedule" />
|
||||||
|
|
||||||
</DModalBody>
|
</DModalBody>
|
||||||
|
|
|
@ -22,7 +22,7 @@ export default createWidget("do-not-disturb", {
|
||||||
return [
|
return [
|
||||||
h("button.btn-flat.do-not-disturb-inner-container", [
|
h("button.btn-flat.do-not-disturb-inner-container", [
|
||||||
iconNode("toggle-off"),
|
iconNode("toggle-off"),
|
||||||
h("span.do-not-disturb-label", I18n.t("do_not_disturb.label")),
|
h("span.do-not-disturb-label", I18n.t("pause_notifications.label")),
|
||||||
]),
|
]),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -523,7 +523,7 @@ acceptance("User menu", function (needs) {
|
||||||
.replaceAll(/\s+/g, " ")
|
.replaceAll(/\s+/g, " ")
|
||||||
.replaceAll(/\u200B/g, "")
|
.replaceAll(/\u200B/g, "")
|
||||||
.trim(),
|
.trim(),
|
||||||
I18n.t("do_not_disturb.label"),
|
I18n.t("pause_notifications.label"),
|
||||||
"Do Not Disturb button has the right label"
|
"Do Not Disturb button has the right label"
|
||||||
);
|
);
|
||||||
assert.ok(
|
assert.ok(
|
||||||
|
@ -546,7 +546,7 @@ acceptance("User menu", function (needs) {
|
||||||
.replaceAll(/\s+/g, " ")
|
.replaceAll(/\s+/g, " ")
|
||||||
.replaceAll(/\u200B/g, "")
|
.replaceAll(/\u200B/g, "")
|
||||||
.trim(),
|
.trim(),
|
||||||
`${I18n.t("do_not_disturb.label")} 2h`,
|
`${I18n.t("pause_notifications.label")} 2h`,
|
||||||
"Do Not Disturb button has the right label when Do Not Disturb is enabled"
|
"Do Not Disturb button has the right label when Do Not Disturb is enabled"
|
||||||
);
|
);
|
||||||
assert.ok(
|
assert.ok(
|
||||||
|
|
|
@ -1078,7 +1078,7 @@ en:
|
||||||
notification_schedule:
|
notification_schedule:
|
||||||
title: "Notification Schedule"
|
title: "Notification Schedule"
|
||||||
label: "Enable custom notification schedule"
|
label: "Enable custom notification schedule"
|
||||||
tip: "Outside of these hours you will be put in 'do not disturb' automatically."
|
tip: "Outside of these hours your notifications will be paused."
|
||||||
midnight: "Midnight"
|
midnight: "Midnight"
|
||||||
none: "None"
|
none: "None"
|
||||||
monday: "Monday"
|
monday: "Monday"
|
||||||
|
@ -4289,9 +4289,9 @@ en:
|
||||||
|
|
||||||
image_removed: "(image removed)"
|
image_removed: "(image removed)"
|
||||||
|
|
||||||
do_not_disturb:
|
pause_notifications:
|
||||||
title: "Do not disturb for..."
|
title: "Pause notifications for..."
|
||||||
label: "Do not disturb"
|
label: "Pause notifications"
|
||||||
remaining: "%{remaining} remaining"
|
remaining: "%{remaining} remaining"
|
||||||
options:
|
options:
|
||||||
half_hour: "30 minutes"
|
half_hour: "30 minutes"
|
||||||
|
|
Loading…
Reference in New Issue