From: moodler Date: Fri, 22 Sep 2006 03:36:31 +0000 (+0000) Subject: Fix for MDL-6319, to fix opposite-state links for unread tracking settings X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1a030f5112e349ab1ba905a74e75b70435a4511e;p=moodle.git Fix for MDL-6319, to fix opposite-state links for unread tracking settings --- diff --git a/lang/en_utf8/forum.php b/lang/en_utf8/forum.php index 1da56cc06d..26fc03cb44 100644 --- a/lang/en_utf8/forum.php +++ b/lang/en_utf8/forum.php @@ -90,6 +90,8 @@ $string['forumintro'] = 'Forum introduction'; $string['forumname'] = 'Forum name'; $string['forumposts'] = 'Forum posts'; $string['forums'] = 'Forums'; +$string['forumtracked'] = 'Unread posts are being tracked'; +$string['forumtrackednot'] = 'Unread posts are not being tracked'; $string['forumblockingalmosttoomanyposts'] = 'You are approaching the posting threshold. You have posted $a->numposts times in the last $a->blockperiod and the limit is $a->blockafter posts.'; $string['forumbodyhidden'] = 'This post cannot be viewed by you, probably because you have not posted in the discussion yet.'; $string['forumauthorhidden'] = 'Author (hidden)'; @@ -139,7 +141,7 @@ $string['noquestions'] = 'There are no questions yet in this forum'; $string['nosubscribers'] = 'There are no subscribers yet for this forum'; $string['nothingnew'] = 'Nothing new for $a'; $string['notingroup'] = 'Sorry, but you need to be part of a group to see this forum.'; -$string['notrackforum'] = 'Don\'t track unread messages'; +$string['notrackforum'] = 'Don\'t track unread posts'; $string['noviewdiscussionspermission'] = 'You do not have the permission to view discussions in this forum'; $string['nownotsubscribed'] = '$a->name will NOT receive copies of \'$a->forum\' by email.'; $string['nownottracking'] = '$a->name is no longer tracking \'$a->forum\'.'; @@ -233,7 +235,7 @@ $string['subscription'] = 'Subscription'; $string['subscriptions'] = 'Subscriptions'; $string['thisforumisthrottled'] = 'This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at $a->blockafter posting(s) in $a->blockperiod'; $string['timestartenderror'] = 'Display end date cannot be earlier than the start date'; -$string['trackforum'] = 'Track unread messages'; +$string['trackforum'] = 'Track unread posts'; $string['tracking'] = 'Track'; $string['trackingon'] = 'On'; $string['trackingoff'] = 'Off'; diff --git a/mod/forum/view.php b/mod/forum/view.php index 352a70f31c..95541c176f 100644 --- a/mod/forum/view.php +++ b/mod/forum/view.php @@ -187,11 +187,11 @@ if (forum_tp_is_tracked($forum, $USER->id)) { $trtitle = get_string('notrackforum', 'forum'); $trackedlink = ''.get_string('notrackforum', 'forum').''; + $forum->id.'&returnpage=view.php">'.get_string('forumtracked', 'forum').''; } else { $trtitle = get_string('trackforum', 'forum'); $trackedlink = ''.get_string('trackforum', 'forum').''; + $forum->id.'&returnpage=view.php">'.get_string('forumtrackednot', 'forum').''; } echo "
"; echo "$trackedlink";