Skip to content

A platform for community discussion. Free, open, simple.

UX: Clarify email message placeholders for user penalties (#45365)

Alan Guo Xiang Tan12a339abf5fd
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 81b177c73dd..c4d27344bef 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -10051,7 +10051,7 @@ en:
no_constructive_purpose: "No constructive purpose to their actions other than creating dissent within the community"
custom: "Custom…"
suspend_message: "Email Message"
- suspend_message_placeholder: "Optionally, provide more information about the suspension and it will be emailed to the user."
+ suspend_message_placeholder: "Optionally, provide more information about this action and it will be included in the email sent to the suspended user."
suspended_by: "Suspended by"
silence_reason: "Reason"
silenced_by: "Silenced By"
@@ -10062,7 +10062,7 @@ en:
silence_reason_title: "Silence reason"
silence_reason_placeholder: "Silence Reason"
silence_message: "Email Message"
- silence_message_placeholder: "(leave blank to send default message)"
+ silence_message_placeholder: "Optionally, provide more information about this action and it will be included in the email sent to the silenced user."
suspended_until: "(until %{until})"
suspend_forever: "Suspend forever"
cant_suspend: "This user cannot be suspended."
diff --git a/frontend/discourse/admin/components/admin-penalty-reason.gjs b/frontend/discourse/admin/components/admin-penalty-reason.gjs
index 8324151c871..b6ebc2556b0 100644
--- a/frontend/discourse/admin/components/admin-penalty-reason.gjs
+++ b/frontend/discourse/admin/components/admin-penalty-reason.gjs
@@ -98,7 +98,13 @@ export default class AdminPenaltyReason extends Component {
<label>{{i18n "admin.user.suspend_message"}}</label>
<textarea
class="suspend-message"
- placeholder={{i18n "admin.user.suspend_message_placeholder"}}
+ placeholder={{i18n
+ (if
+ (eq @penaltyType "silence")
+ "admin.user.silence_message_placeholder"
+ "admin.user.suspend_message_placeholder"
+ )
+ }}
value={{@message}}
{{on "input" (withEventValue @onChangeMessage)}}
/>