Add [PM] to subject of email notifications for private messages

This commit is contained in:
Neil Lalonde 2013-06-07 15:50:05 -04:00
parent 463be6fadf
commit 34e1f376f6
2 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class UserNotifications < ActionMailer::Base
"user_notifications.private_message", "user_notifications.private_message",
message: post.raw, message: post.raw,
url: post.url, url: post.url,
subject_prefix: post.post_number != 1 ? "re: " : "", subject_prefix: "[#{I18n.t('private_message_abbrev')}] #{post.post_number != 1 ? 're: ' : ''}",
topic_title: post.topic.title, topic_title: post.topic.title,
private_message_from: post.user.name, private_message_from: post.user.name,
from: "#{I18n.t(:via, username: post.user.name, site_name: SiteSetting.title)} <#{SiteSetting.notification_email}>", from: "#{I18n.t(:via, username: post.user.name, site_name: SiteSetting.title)} <#{SiteSetting.notification_email}>",

View File

@ -49,6 +49,7 @@ en:
rss_posts_in_topic: "RSS feed of '%{topic}'" rss_posts_in_topic: "RSS feed of '%{topic}'"
rss_topics_in_category: "RSS feed of topics in the '%{category}' category" rss_topics_in_category: "RSS feed of topics in the '%{category}' category"
author_wrote: "%{author} wrote:" author_wrote: "%{author} wrote:"
private_message_abbrev: "PM"
groups: groups:
default_names: default_names: