Make report-type translatable
This commit is contained in:
parent
6f21ccda06
commit
1a0c9f5983
2 changed files with 6 additions and 2 deletions
|
|
@ -2,10 +2,11 @@ class ReportMailer < ActionMailer::Base
|
|||
default :from => AppConfig.mail.sender_address
|
||||
|
||||
def new_report(type, id)
|
||||
report_type = I18n.t('notifier.report_email.type.' + type)
|
||||
resource = {
|
||||
:subject => I18n.t('notifier.report_email.subject', :type => type),
|
||||
:subject => I18n.t('notifier.report_email.subject', :type => report_type),
|
||||
:url => report_index_url,
|
||||
:type => type,
|
||||
:type => report_type,
|
||||
:id => id
|
||||
}
|
||||
Role.admins.each do |role|
|
||||
|
|
|
|||
|
|
@ -737,6 +737,9 @@ en:
|
|||
subject: "Please activate your new email address %{unconfirmed_email}"
|
||||
click_link: "To activate your new email address %{unconfirmed_email}, please follow this link:"
|
||||
report_email:
|
||||
type:
|
||||
post: "post"
|
||||
comment: "comment"
|
||||
subject: "A new %{type} was marked as offensive"
|
||||
body: |-
|
||||
Hello,
|
||||
|
|
|
|||
Loading…
Reference in a new issue