diff --git a/mod/forum/lang/en/forum.php b/mod/forum/lang/en/forum.php index e5215fd1c22..ff4e8b1fa8d 100644 --- a/mod/forum/lang/en/forum.php +++ b/mod/forum/lang/en/forum.php @@ -115,6 +115,7 @@ $string['delete'] = 'Delete'; $string['deleteddiscussion'] = 'The discussion topic has been deleted'; $string['deletedpost'] = 'The post has been deleted'; $string['deletedposts'] = 'Those posts have been deleted'; +$string['deleteoriginalonreply'] = 'If replying directly to this via email, please do not include a quoted copy of the post you are responding to'; $string['deletesure'] = 'Are you sure you want to delete this post?'; $string['deletesureplural'] = 'Are you sure you want to delete this post and all replies? ({$a} posts)'; $string['digestmailheader'] = 'This is your daily digest of new posts from the {$a->sitename} forums. To change your default forum email preferences, go to {$a->userprefs}.'; @@ -406,8 +407,7 @@ $string['repliesmany'] = '{$a} replies so far'; $string['repliesone'] = '{$a} reply so far'; $string['reply'] = 'Reply'; $string['replyforum'] = 'Reply to forum'; -$string['replytoforumpost'] = 'Reply via email to {$a}'; -$string['replytoforumpost_html'] = 'Reply via email'; +$string['replytoforumpost'] = 'You can reply to this forum post by email.'; $string['replytouser'] = 'Use email address in reply'; $string['reply_handler'] = 'Reply to forum posts via email'; $string['reply_handler_name'] = 'Reply to forum posts'; diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 5b1d0830f53..815bfdcf6d1 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -1186,6 +1186,10 @@ function forum_make_mail_text($course, $cm, $forum, $discussion, $post, $userfro $posttext = ''; + if ($replyaddress) { + $posttext .= "--" . get_string('deleteoriginalonreply', 'mod_forum') . "--\n"; + } + if (!$bare) { $shortname = format_string($course->shortname, true, array('context' => context_course::instance($course->id))); $posttext = "$shortname -> $strforums -> ".format_string($forum->name,true); @@ -1237,7 +1241,7 @@ function forum_make_mail_text($course, $cm, $forum, $discussion, $post, $userfro $posttext .= ": {$CFG->wwwroot}/mod/forum/index.php?id={$forum->course}\n"; if ($replyaddress) { - $posttext .= "\n\n" . get_string('replytoforumpost', 'mod_forum', $replyaddress); + $posttext .= "\n\n" . get_string('replytoforumpost', 'mod_forum'); } return $posttext; @@ -1282,6 +1286,10 @@ function forum_make_mail_html($course, $cm, $forum, $discussion, $post, $userfro $posthtml .= ''; $posthtml .= "\n\n\n"; + if ($replyaddress) { + $posttext .= "

--" . get_string('deleteoriginalonreply', 'mod_forum') . "--

"; + } + $posthtml .= '