Force locale on subject translation for diary comment notifications, since the sending user's locale is not that of recipient.
It is assumed that sender locale is that of recipient for the rest of the emails, which is fine, since the sender is the recipient. The bodies are accounted for correctly by common_headers and the monkeypatching of ActionMailer. (references #1968)
This commit is contained in:
parent
2fabbed189
commit
0ed4cdbd49
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ class Notifier < ActionMailer::Base
|
|||
|
||||
def diary_comment_notification(comment)
|
||||
common_headers comment.diary_entry.user
|
||||
subject I18n.t('notifier.diary_comment_notification.subject', :user => comment.user.display_name)
|
||||
subject I18n.t('notifier.diary_comment_notification.subject', :user => comment.user.display_name, :locale => locale)
|
||||
body :to_user => comment.diary_entry.user.display_name,
|
||||
:from_user => comment.user.display_name,
|
||||
:body => comment.body,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue