settings: Italicize text inside parens for presence_enabled setting.

This commit is contained in:
Sahil Batra 2022-09-24 16:10:36 +05:30 committed by Tim Abbott
parent f151a4aa11
commit fda471ab80
5 changed files with 8 additions and 2 deletions

View File

@ -45,8 +45,9 @@ function setup_settings_label() {
settings_label = {
// settings_notification
presence_enabled: $t({
defaultMessage: "Display my availability to other users (invisible mode off)",
defaultMessage: "Display my availability to other users",
}),
presence_enabled_parens_text: $t({defaultMessage: "invisible mode off"}),
send_stream_typing_notifications: $t({
defaultMessage: "Let subscribers see when I'm typing messages in streams",
}),

View File

@ -535,8 +535,9 @@ export const realm_user_settings_defaults_labels = {
enable_digest_emails: $t({defaultMessage: "Send digest emails when user is away"}),
realm_presence_enabled: $t({
defaultMessage: "Display availability to other users (invisible mode off)",
defaultMessage: "Display availability to other users",
}),
realm_presence_enabled_parens_text: $t({defaultMessage: "invisible mode off"}),
realm_enter_sends: $t({defaultMessage: "Enter sends when composing a message"}),
realm_send_read_receipts: $t({defaultMessage: "Allow other users to view read receipts"}),
};

View File

@ -71,6 +71,7 @@
setting_name="presence_enabled"
is_checked=settings_object.presence_enabled
label=settings_label.presence_enabled
label_parens_text=settings_label.presence_enabled_parens_text
help_link="/help/status-and-availability"
prefix="user_"}}
</div>

View File

@ -19,6 +19,7 @@
setting_name="presence_enabled"
is_checked=settings_object.presence_enabled
label=settings_label.realm_presence_enabled
label_parens_text=settings_label.realm_presence_enabled_parens_text
help_link="/help/status-and-availability"
prefix="realm_"}}
{{> settings_checkbox

View File

@ -111,6 +111,8 @@ IGNORED_PHRASES = [
r"to add a new line",
# Used in showing Notification Bot read receipts message
"Notification Bot",
# Used in presence_enabled setting label
r"invisible mode off",
]
# Sort regexes in descending order of their lengths. As a result, the