Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Matt <lukas@zauberstuhl.de>2014-03-23 00:03:27 +0400
committerLukas Matt <lukas@zauberstuhl.de>2014-05-15 15:23:43 +0400
commit1a0c9f5983b63eff1f17aa96e4e1f4dc502004c1 (patch)
tree0aa2733a85c8c7d31e6ce471e03811863c2befab /app/mailers
parent6f21ccda064f749a7feca01224a7d91445ccc91b (diff)
Make report-type translatable
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/report_mailer.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/mailers/report_mailer.rb b/app/mailers/report_mailer.rb
index a9223c752..4a9b639a9 100644
--- a/app/mailers/report_mailer.rb
+++ b/app/mailers/report_mailer.rb
@@ -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|