mirror of
https://github.com/flarum/core.git
synced 2025-08-11 10:55:47 +02:00
feat: Display suspension to user (#41)
This commit is contained in:
@@ -16,14 +16,25 @@ flarum-suspend:
|
||||
# These translations are used in the suspension notifications
|
||||
notifications:
|
||||
user_suspended_text: "You have been suspended for {timeReadable}"
|
||||
user_suspended_indefinite_text: You have been suspended indefinitely
|
||||
user_unsuspended_text: You have been unsuspended
|
||||
|
||||
# These translations are used for the suspension reason informational modal to the suspended user.
|
||||
suspension_info:
|
||||
dismiss_button: Dismiss
|
||||
indefinite: This is an indefinite suspension
|
||||
limited: "This suspension will be in force until {date}"
|
||||
title: This account is suspended
|
||||
|
||||
# These translations are used in the Suspend User modal dialog (admin function).
|
||||
suspend_user:
|
||||
display_message: Display message for user
|
||||
indefinitely_label: Suspended indefinitely
|
||||
limited_time_days_text: " days"
|
||||
limited_time_label: Suspended for a limited time...
|
||||
not_suspended_label: Not suspended
|
||||
placeholder_optional: Optional
|
||||
reason: Reason for suspension
|
||||
status_heading: Suspension Status
|
||||
submit_button: => core.ref.save_changes
|
||||
title: "Suspend {username}"
|
||||
@@ -35,3 +46,25 @@ flarum-suspend:
|
||||
# These translations are found on the user profile page (admin function).
|
||||
user_controls:
|
||||
suspend_button: Suspend
|
||||
|
||||
# Translations in this namespace are used by suspension email notifications
|
||||
email:
|
||||
suspended:
|
||||
subject: Your account has been suspended
|
||||
body: |
|
||||
Hey {recipient_display_name},
|
||||
|
||||
You have been suspended for the following reason:
|
||||
|
||||
---
|
||||
{suspension_message}
|
||||
---
|
||||
|
||||
unsuspended:
|
||||
subject: Your account has been unsuspended
|
||||
body: |
|
||||
Hey {recipient_display_name},
|
||||
|
||||
You have been unsuspended. You can head back to the forum by clicking on the following link:
|
||||
|
||||
{forum_url}
|
||||
|
Reference in New Issue
Block a user