From ea5a19eb4ec6c6367a757c878375d82aafc1b40d Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 27 May 2013 10:35:05 +0100 Subject: [PATCH] Use correct locale for note comment notification emails --- app/models/notifier.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/notifier.rb b/app/models/notifier.rb index 341c9072a..3e66be864 100644 --- a/app/models/notifier.rb +++ b/app/models/notifier.rb @@ -134,13 +134,13 @@ class Notifier < ActionMailer::Base if comment.author @commenter = comment.author.display_name else - @commenter = I18n.t("notifier.note_comment_notification.anonymous") + @commenter = I18n.t("notifier.note_comment_notification.anonymous", :locale => @locale) end if @owner - subject = I18n.t("notifier.note_comment_notification.#{@event}.subject_own", :commenter => @commenter) + subject = I18n.t("notifier.note_comment_notification.#{@event}.subject_own", :commenter => @commenter, :locale => @locale) else - subject = I18n.t("notifier.note_comment_notification.#{@event}.subject_other", :commenter => @commenter) + subject = I18n.t("notifier.note_comment_notification.#{@event}.subject_other", :commenter => @commenter, :locale => @locale) end mail :to => recipient.email, :subject => subject -- 2.43.2