mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-29 23:43:55 -04:00
BUGFIX: no translation for email_error_notifications to admin users
This commit is contained in:
parent
37d4324af3
commit
dcd0b8fecf
2 changed files with 17 additions and 8 deletions
|
@ -28,12 +28,14 @@ class GroupMessage
|
||||||
|
|
||||||
def create
|
def create
|
||||||
unless sent_recently?
|
unless sent_recently?
|
||||||
post = PostCreator.create( Discourse.system_user,
|
post = PostCreator.create(
|
||||||
target_group_names: [@group_name],
|
Discourse.system_user,
|
||||||
archetype: Archetype.private_message,
|
target_group_names: [@group_name],
|
||||||
subtype: TopicSubtype.system_message,
|
archetype: Archetype.private_message,
|
||||||
title: I18n.t("system_messages.#{@message_type}.subject_template", message_params),
|
subtype: TopicSubtype.system_message,
|
||||||
raw: I18n.t("system_messages.#{@message_type}.text_body_template", message_params) )
|
title: I18n.t("system_messages.#{@message_type}.subject_template", message_params),
|
||||||
|
raw: I18n.t("system_messages.#{@message_type}.text_body_template", message_params)
|
||||||
|
)
|
||||||
remember_message_sent
|
remember_message_sent
|
||||||
post
|
post
|
||||||
else
|
else
|
||||||
|
@ -43,7 +45,7 @@ class GroupMessage
|
||||||
|
|
||||||
def message_params
|
def message_params
|
||||||
@message_params ||= begin
|
@message_params ||= begin
|
||||||
h = {base_url: Discourse.base_url}.merge(@opts[:message_params]||{})
|
h = { base_url: Discourse.base_url }.merge(@opts[:message_params] || {})
|
||||||
if @opts[:user]
|
if @opts[:user]
|
||||||
h.merge!({
|
h.merge!({
|
||||||
username: @opts[:user].username,
|
username: @opts[:user].username,
|
||||||
|
|
|
@ -1334,7 +1334,7 @@ en:
|
||||||
The email encoding was unknown or not supported. Try again with UTF-8 plain text.
|
The email encoding was unknown or not supported. Try again with UTF-8 plain text.
|
||||||
|
|
||||||
email_reject_post_error:
|
email_reject_post_error:
|
||||||
subject_template: "Email issue -- posting error"
|
subject_template: "Email issue -- Posting error"
|
||||||
text_body_template: |
|
text_body_template: |
|
||||||
We're sorry, but your email message to %{destination} didn't work.
|
We're sorry, but your email message to %{destination} didn't work.
|
||||||
|
|
||||||
|
@ -1347,6 +1347,13 @@ en:
|
||||||
|
|
||||||
The provided reply key is invalid or unknown, so we don't know what this email is in reply to. Contact a staff member.
|
The provided reply key is invalid or unknown, so we don't know what this email is in reply to. Contact a staff member.
|
||||||
|
|
||||||
|
email_error_notification:
|
||||||
|
subject_template: "Email issue -- POP authentication error"
|
||||||
|
text_body_template: |
|
||||||
|
There has been an authentication error while polling mails from the POP server.
|
||||||
|
|
||||||
|
Please make sure you have properly configured the POP credentials in [the site settings](%{base_url}/admin/site_settings/category/email).
|
||||||
|
|
||||||
too_many_spam_flags:
|
too_many_spam_flags:
|
||||||
subject_template: "New account blocked"
|
subject_template: "New account blocked"
|
||||||
text_body_template: |
|
text_body_template: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue