mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:10:17 +08:00
Add [PM] to subject of email notifications for private messages
This commit is contained in:
parent
463be6fadf
commit
34e1f376f6
|
@ -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}>",
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user