mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 19:53:53 -06:00
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")}}
|
||||
<span class="item-label">
|
||||
{{#if this.isInDoNotDisturb}}
|
||||
<span>{{i18n "do_not_disturb.label"}}</span>
|
||||
<span>{{i18n "pause_notifications.label"}}</span>
|
||||
{{#if this.showDoNotDisturbEndDate}}
|
||||
{{format-age this.doNotDisturbDateTime}}
|
||||
{{/if}}
|
||||
{{else}}
|
||||
{{i18n "do_not_disturb.label"}}
|
||||
{{i18n "pause_notifications.label"}}
|
||||
{{/if}}
|
||||
</span>
|
||||
</DButton>
|
||||
|
@ -1,19 +1,19 @@
|
||||
<DModalBody @title="do_not_disturb.title">
|
||||
<DModalBody @title="pause_notifications.title">
|
||||
<TapTileGrid @activeTile={{this.duration}} as |grid|>
|
||||
<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 @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 @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 @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>
|
||||
</TapTileGrid>
|
||||
|
||||
<DButton @action={{action "navigateToNotificationSchedule"}} @label="do_not_disturb.set_schedule" />
|
||||
<DButton @action={{action "navigateToNotificationSchedule"}} @label="pause_notifications.set_schedule" />
|
||||
|
||||
</DModalBody>
|
||||
|
@ -22,7 +22,7 @@ export default createWidget("do-not-disturb", {
|
||||
return [
|
||||
h("button.btn-flat.do-not-disturb-inner-container", [
|
||||
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(/\u200B/g, "")
|
||||
.trim(),
|
||||
I18n.t("do_not_disturb.label"),
|
||||
I18n.t("pause_notifications.label"),
|
||||
"Do Not Disturb button has the right label"
|
||||
);
|
||||
assert.ok(
|
||||
@ -546,7 +546,7 @@ acceptance("User menu", function (needs) {
|
||||
.replaceAll(/\s+/g, " ")
|
||||
.replaceAll(/\u200B/g, "")
|
||||
.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"
|
||||
);
|
||||
assert.ok(
|
||||
|
@ -1078,7 +1078,7 @@ en:
|
||||
notification_schedule:
|
||||
title: "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"
|
||||
none: "None"
|
||||
monday: "Monday"
|
||||
@ -4289,9 +4289,9 @@ en:
|
||||
|
||||
image_removed: "(image removed)"
|
||||
|
||||
do_not_disturb:
|
||||
title: "Do not disturb for..."
|
||||
label: "Do not disturb"
|
||||
pause_notifications:
|
||||
title: "Pause notifications for..."
|
||||
label: "Pause notifications"
|
||||
remaining: "%{remaining} remaining"
|
||||
options:
|
||||
half_hour: "30 minutes"
|
||||
|
Loading…
Reference in New Issue
Block a user