Language fixes
authormoodler <moodler>
Wed, 6 Nov 2002 07:40:36 +0000 (07:40 +0000)
committermoodler <moodler>
Wed, 6 Nov 2002 07:40:36 +0000 (07:40 +0000)
mod/forum/search.php
mod/journal/index.php

index 1ee32b5..432cbfd 100644 (file)
 
     add_to_log($course->id, "forum", "search", "search.php?id=$course->id&search=$search", "$search"); 
 
+    $strforums = get_string("modulenameplural", "forum");
+    $strsearch = get_string("search", "forum");
+    $strsearchresults = get_string("searchresults", "forum");
+
     if ($search) {
-        print_header("$course->shortname: Search Results", "$course->fullname",
+        print_header("$course->shortname: $strsearchresults", "$course->fullname",
                  "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> -> 
-                  <A HREF=\"index.php?id=$course->id\">Forums</A> -> 
-                  <A HREF=\"search.php?id=$course->id\">Search</A> -> \"$search\"", "search.search");
+                  <A HREF=\"index.php?id=$course->id\">$strforums</A> -> 
+                  <A HREF=\"search.php?id=$course->id\">$strsearch</A> -> \"$search\"", "search.search");
     } else {
-        print_header("$course->shortname: Search", "$course->fullname",
+        print_header("$course->shortname: $strsearch", "$course->fullname",
                  "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> -> 
-                  <A HREF=\"index.php?id=$course->id\">Forums</A> -> Search", "search.search");
+                  <A HREF=\"index.php?id=$course->id\">$strforums</A> -> $strsearch", "search.search");
     }
 
     echo "<DIV ALIGN=CENTER>";
index 5ef9baa..25aec9c 100644 (file)
@@ -62,9 +62,9 @@
 
         $text = text_to_html($entry->text)."<P ALIGN=right><A HREF=\"view.php?id=$journal->coursemodule\">";
         if ($journalopen) {
-            $text .= "Edit</A></P>";
+            $text .= "$stredit</A></P>";
         } else {
-            $text .= "View</A></P>";
+            $text .= "$strview</A></P>";
         }
         if ($course->format == "weeks" or $course->format == "topics") {
             $table->data[] = array ("$journal->section",