mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
Add [PM] to subject of email notifications for private messages
This commit is contained in:
parent
463be6fadf
commit
34e1f376f6
2 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,7 @@ class UserNotifications < ActionMailer::Base
|
|||
"user_notifications.private_message",
|
||||
message: post.raw,
|
||||
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,
|
||||
private_message_from: post.user.name,
|
||||
from: "#{I18n.t(:via, username: post.user.name, site_name: SiteSetting.title)} <#{SiteSetting.notification_email}>",
|
||||
|
|
|
@ -49,6 +49,7 @@ en:
|
|||
rss_posts_in_topic: "RSS feed of '%{topic}'"
|
||||
rss_topics_in_category: "RSS feed of topics in the '%{category}' category"
|
||||
author_wrote: "%{author} wrote:"
|
||||
private_message_abbrev: "PM"
|
||||
|
||||
groups:
|
||||
default_names:
|
||||
|
|
Loading…
Reference in a new issue