From: moodler Date: Wed, 6 Nov 2002 09:13:19 +0000 (+0000) Subject: Fixed some more missing strings X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=405ea757e67928349e234935752e3089cd203537;p=moodle.git Fixed some more missing strings --- diff --git a/lang/en/forum.php b/lang/en/forum.php index 859aa44d44..fedd7cc378 100644 --- a/lang/en/forum.php +++ b/lang/en/forum.php @@ -59,6 +59,7 @@ $string['newforumposts'] = "New forum posts"; $string['nodiscussions'] = "There are no discussion topics yet in this forum"; $string['noguestpost'] = "Sorry, guests are not allowed to post"; $string['noposts'] = "No posts"; +$string['nopostscontaining'] = "No posts containing '\$a' were found"; $string['nosubscribers'] = "There are no subscribers yet for this forum"; $string['nownotsubscribed'] = "\$a->name will NOT receive copies of '\$a->forum' by email."; $string['nowsubscribed'] = "\$a->name will receive copies of '\$a->forum' by email."; @@ -69,6 +70,7 @@ $string['openmode1'] = "No discussions, but replies are allowed"; $string['openmode2'] = "Discussions and replies are allowed"; $string['parentofthispost'] = "Parent of this post"; $string['postadded'] = "Your post was successfully added.

You have \$a to edit it if you want to make any changes."; +$string['postincontext'] = "See this post in context"; $string['postmailinfo'] = "This is a copy of a message posted on the \$a website. To add your reply via the website, click on this link:"; diff --git a/mod/forum/search.php b/mod/forum/search.php index 432cbfd84c..7e60a58861 100644 --- a/mod/forum/search.php +++ b/mod/forum/search.php @@ -53,7 +53,7 @@ ORDER BY p.modified DESC LIMIT 0, 50 "); if (!$posts) { - print_heading("
No posts found containing \"$search\""); + print_heading("
".get_string("nopostscontaining", "forum", $search)); } else { foreach ($posts as $post) { @@ -75,7 +75,7 @@ $post->subject = $fullsubject; $post->message = highlight("$search", $post->message); - $fulllink = "

discussion&parent=$post->id\">See this post in context

"; + $fulllink = "

discussion&parent=$post->id\">".get_string("postincontext", "forum")."

"; forum_print_post($post, $course->id, false, false, false, false, $fulllink); echo "
";