]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/notifier.rb
Force locale on subject translation for diary comment notifications, since the sendin...
[rails.git] / app / models / notifier.rb
index 80a8ae4850a20a8849b25369aab621b2e69450b0..2313e97cefbe877e08d2e90304178c6b5df04427 100644 (file)
@@ -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,