]> git.mjollnir.org Git - moodle.git/commitdiff
Tweaks and tidy-ups for course home pages (weekly and topics)
authormartin <martin>
Sat, 10 Aug 2002 13:42:12 +0000 (13:42 +0000)
committermartin <martin>
Sat, 10 Aug 2002 13:42:12 +0000 (13:42 +0000)
course/lib.php
course/log.php
course/topics.php
course/weeks.php
lang/en/moodle.php
lib/moodlelib.php

index 967d8d27db11b11ec2f8838bbe577fbb9cf353dc..18af8e799f3f4fb93e501b36dfdd31fe85d35de0 100644 (file)
@@ -368,7 +368,8 @@ function print_recent_activity($course) {
                     $heading = true;
                     $content = true;
                 }
-                echo "<P><FONT SIZE=1 $teacherpost>$post->firstname $post->lastname:<BR>";
+                $date = userdate($post->modified, "%e %b, %H:%M");
+                echo "<P><FONT SIZE=1 $teacherpost>$date - $post->firstname $post->lastname<BR>";
                 echo "\"<A HREF=\"$CFG->wwwroot/mod/forum/$log->url\">";
                 if ($log->action == "add") {
                     echo "<B>$post->subject</B>";
index d89f2c9f933675491ba762634be93f5e1296096c..9a5904b0037bf1f38092f1829dda7a9b451c0520 100644 (file)
@@ -26,6 +26,8 @@
         $user = "";
     }
 
+    $strlogs = get_string("logs");
+
 
     if ($user || $date) {
 
@@ -42,9 +44,9 @@
             $dateinfo = userdate($date, "%A, %e %B %Y");
         }
 
-        print_header("$course->shortname: Logs", "$course->fullname", 
+        print_header("$course->shortname: $strlogs", "$course->fullname", 
                      "<A HREF=\"view.php?id=$course->id\">$course->shortname</A> ->
-                      <A HREF=\"log.php?id=$course->id\">Logs</A> -> Logs for $userinfo, $dateinfo", "");
+                      <A HREF=\"log.php?id=$course->id\">$strlogs</A> -> $userinfo, $dateinfo", "");
         
         print_heading("$course->fullname: $userinfo, $dateinfo (".usertimezone().")");
 
@@ -54,8 +56,8 @@
 
 
     } else {
-        print_header("$course->shortname: Logs", "$course->fullname", 
-                 "<A HREF=\"view.php?id=$course->id\">$course->shortname</A> -> Logs", "");
+        print_header("$course->shortname: $strlogs", "$course->fullname", 
+                 "<A HREF=\"view.php?id=$course->id\">$course->shortname</A> -> $strlogs", "");
 
         print_heading("Choose which logs you want to look at");
 
index 0728aea501ea0c502a900c7157077732cb407796..476d9c89472811ba6679bd3ef716c1b55a5b20c8 100644 (file)
 
     $blinker = " <BLINK>*</BLINK>";
 
-    print_simple_box("People", $align="CENTER", $width="100%", $color="$THEME->cellheading");
-    $moddata[]="<A HREF=\"../user/index.php?id=$course->id\">List of all people</A>";
-    $modicon[]="<IMG SRC=\"../user/users.gif\" HEIGHT=16 WIDTH=16 ALT=\"List of everyone\">";
-    $editmyprofile = "<A HREF=\"../user/view.php?id=$USER->id&course=$course->id\">Edit my profile</A>";
+    print_simple_box(get_string("people"), $align="CENTER", $width="100%", $color="$THEME->cellheading");
+    $moddata[]="<A HREF=\"../user/index.php?id=$course->id\">".get_string("listofallpeople")."</A>";
+    $modicon[]="<IMG SRC=\"../user/users.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
+    $editmyprofile = "<A HREF=\"../user/view.php?id=$USER->id&course=$course->id\">".get_string("editmyprofile")."</A>";
     if ($USER->description) {
         $moddata[]= $editmyprofile;
     } else {
         $moddata[]= $editmyprofile.$blinker;
     }
-    $modicon[]="<IMG SRC=\"../user/user.gif\" HEIGHT=16 WIDTH=16 ALT=\"Me\">";
+    $modicon[]="<IMG SRC=\"../user/user.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
     print_side_block("", $moddata, "", $modicon);
 
 
@@ -65,7 +65,7 @@
     if ($modnamesused) {
         foreach ($modnamesused as $modname => $modfullname) {
             $moddata[] = "<A HREF=\"../mod/$modname/index.php?id=$course->id\">".$modnamesplural[$modname]."</A>";
-            $modicon[] = "<IMG SRC=\"../mod/$modname/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"$modfullname\">";
+            $modicon[] = "<IMG SRC=\"../mod/$modname/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
         }
     }
     print_simple_box("Activities", $align="CENTER", $width="100%", $color="$THEME->cellheading");
     // Admin links and controls
 
     if (isteacher($course->id)) {
-        $adminicon[]="<IMG SRC=\"../pix/i/edit.gif\" HEIGHT=16 WIDTH=16 ALT=\"Edit\">";
-        if (isediting($course->id)) {
-            $admindata[]="<A HREF=\"view.php?id=$course->id&edit=off\">Turn editing off</A>";
-        } else {
-            $admindata[]="<A HREF=\"view.php?id=$course->id&edit=on\">Turn editing on</A>";
-        }
+        echo "<BR>";
+        $admindata[]="<A HREF=\"edit.php?id=$course->id\">".get_string("settings")."...</A>";
+        $adminicon[]="<IMG SRC=\"../pix/i/settings.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
+        $admindata[]="<A HREF=\"log.php?id=$course->id\">".get_string("logs")."...</A>";
+        $adminicon[]="<IMG SRC=\"../pix/i/log.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
+        $admindata[]="<A HREF=\"../files/index.php?id=$course->id\">".get_string("files")."...</A>";
+        $adminicon[]="<IMG SRC=\"../files/pix/files.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
+
         if ($teacherforum = forum_get_course_forum($course->id, "teacher")) {
-            $admindata[]="<A HREF=\"../mod/forum/view.php?f=$teacherforum->id\">Teacher Forum...</A>";
-            $adminicon[]="<IMG SRC=\"../mod/forum/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"Teacher Forum\">";
+            $admindata[]="<A HREF=\"../mod/forum/view.php?f=$teacherforum->id\">".get_string("teacherforum")."</A>";
+            $adminicon[]="<IMG SRC=\"../mod/forum/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
         }
 
-        $admindata[]="<A HREF=\"edit.php?id=$course->id\">Course settings...</A>";
-        $adminicon[]="<IMG SRC=\"../pix/i/settings.gif\" HEIGHT=16 WIDTH=16 ALT=\"Course settings\">";
-        $admindata[]="<A HREF=\"log.php?id=$course->id\">Logs...</A>";
-        $adminicon[]="<IMG SRC=\"../pix/i/log.gif\" HEIGHT=16 WIDTH=16 ALT=\"Log\">";
-        $admindata[]="<A HREF=\"../files/index.php?id=$course->id\">Files...</A>";
-        $adminicon[]="<IMG SRC=\"../files/pix/files.gif\" HEIGHT=16 WIDTH=16 ALT=\"Files\">";
+        $adminicon[]="<IMG SRC=\"../pix/i/edit.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
+        if (isediting($course->id)) {
+            $admindata[]="<A HREF=\"view.php?id=$course->id&edit=off\">".get_string("turneditingoff")."</A>";
+        } else {
+            $admindata[]="<A HREF=\"view.php?id=$course->id&edit=on\">".get_string("turneditingon")."</A>";
+        }
 
-        print_simple_box("Administration", $align="CENTER", $width="100%", $color="$THEME->cellheading");
+        print_simple_box(get_string("administration"),"CENTER", "100%", $THEME->cellheading);
         print_side_block("", $admindata, "", $adminicon);
     }
 
     // Start main column
     echo "</TD><TD WIDTH=\"*\">";
 
-    print_simple_box("Topic Outline", $align="CENTER", $width="100%", $color="$THEME->cellheading");
+    print_simple_box(get_string("topicoutline"), $align="CENTER", $width="100%", $color="$THEME->cellheading");
     
     // Everything below uses "section" terminology - each "section" is a topic.
 
     $timenow = time();
     $section = 1;
 
+    $streditsummary = get_string("editsummary");
+    $stradd         = get_string("add");
+
     echo "<TABLE BORDER=0 CELLPADDING=8 CELLSPACING=0 WIDTH=100%>";
     while ($section <= $course->numsections) {
 
         }
 
         if (isediting($course->id)) {
-            $thissection->summary .= "&nbsp;<A HREF=editsection.php?id=$thissection->id><IMG SRC=\"../pix/t/edit.gif\" BORDER=0 ALT=\"Edit summary\"></A></P>";
+            $thissection->summary .= "&nbsp;<A HREF=editsection.php?id=$thissection->id><IMG SRC=\"../pix/t/edit.gif\" BORDER=0 ALT=\"$streditsummary\"></A></P>";
         }
 
         echo text_to_html($thissection->summary);
         if (isediting($course->id)) {
             echo "<DIV ALIGN=right>";
             popup_form("$CFG->wwwroot/course/mod.php?id=$course->id&section=$section&add=", 
-                        $modnames, "section$section", "", "Add...");
+                        $modnames, "section$section", "", "$stradd...");
             echo "</DIV>";
         }
 
         echo "<TD NOWRAP BGCOLOR=\"$highlightcolor\" VALIGN=top ALIGN=CENTER WIDTH=10>";
         echo "<FONT SIZE=1>";
         if (isset($USER->topic)) {
-            echo "<A HREF=\"view.php?id=$course->id&topic=all\" TITLE=\"Show all topics\"><IMG SRC=../pix/i/all.gif BORDER=0></A><BR><BR>";
+            $strshowalltopics = get_string("showalltopics");
+            echo "<A HREF=\"view.php?id=$course->id&topic=all\" TITLE=\"$strshowalltopics\"><IMG SRC=../pix/i/all.gif BORDER=0></A><BR><BR>";
         } else {
-            echo "<A HREF=\"view.php?id=$course->id&topic=$section\" TITLE=\"Show only topic $section\"><IMG SRC=../pix/i/one.gif BORDER=0></A><BR><BR>";
+            $strshowonlytopic = get_string("showonlytopic", "", $section);
+            echo "<A HREF=\"view.php?id=$course->id&topic=$section\" TITLE=\"$strshowonlytopic\"><IMG SRC=../pix/i/one.gif BORDER=0></A><BR><BR>";
         }
         if (isediting($course->id) and $course->marker != $section) {
-            echo "<A HREF=\"view.php?id=$course->id&marker=$section\" TITLE=\"Mark this topic as the current topic\"><IMG SRC=../pix/i/marker.gif BORDER=0></A><BR><BR>";
+            $strmarkthistopic = get_string("markthistopic");
+            echo "<A HREF=\"view.php?id=$course->id&marker=$section\" TITLE=\"$strmarkthistopic\"><IMG SRC=../pix/i/marker.gif BORDER=0></A><BR><BR>";
         }
         echo "</TD>";
         echo "</TR>";
     echo "</TABLE>";
     
 
-    echo "</TD><TD WIDTH=180>";
+    echo "</TD><TD WIDTH=210>";
 
     // Print all the news items.
 
     if ($news = forum_get_course_forum($course->id, "news")) {
-        print_simple_box("Latest News", $align="CENTER", $width="100%", $color="$THEME->cellheading");
+        print_simple_box(get_string("latestnews"), $align="CENTER", $width="100%", $color="$THEME->cellheading");
         print_simple_box_start("CENTER", "100%", "#FFFFFF", 3, 0);
         echo "<FONT SIZE=1>";
         forum_print_latest_discussions($news->id, $course->newsitems, "minimal", "DESC", false);
     echo "<BR>";
     
     // Print all the recent activity
-    print_simple_box("Recent Activity", $align="CENTER", $width="100%", $color="$THEME->cellheading");
+    print_simple_box(get_string("sinceyourlastlogin"), $align="CENTER", $width="100%", $color="$THEME->cellheading");
     print_simple_box_start("CENTER", "100%", "#FFFFFF", 3, 0);
     print_recent_activity($course);
     print_simple_box_end();
index fa3f6b7a732cf2fbf735e2f2f95f44cca0310a02..532a9dce07f893224c7f50447d80e9cffc7252ce 100644 (file)
 
     // Links to people
 
-    print_simple_box("People", $align="CENTER", $width="100%", $color="$THEME->cellheading");
-    $moddata[]="<A HREF=\"../user/index.php?id=$course->id\">List of all people</A>";
-    $modicon[]="<IMG SRC=\"../user/users.gif\" HEIGHT=16 WIDTH=16 ALT=\"List of everyone\">";
-    $moddata[]="<A HREF=\"../user/view.php?id=$USER->id&course=$course->id\">Edit my profile</A>";
-    $modicon[]="<IMG SRC=\"../user/user.gif\" HEIGHT=16 WIDTH=16 ALT=\"Me\">";
+    print_simple_box(get_string("people"), $align="CENTER", $width="100%", $color="$THEME->cellheading");
+    $moddata[]="<A HREF=\"../user/index.php?id=$course->id\">".get_string("listofallpeople")."</A>";
+    $modicon[]="<IMG SRC=\"../user/users.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
+    $editmyprofile = "<A HREF=\"../user/view.php?id=$USER->id&course=$course->id\">".get_string("editmyprofile")."</A>";
+    if ($USER->description) {
+        $moddata[]= $editmyprofile;
+    } else {
+        $moddata[]= $editmyprofile.$blinker;
+    }
+    $modicon[]="<IMG SRC=\"../user/user.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
     print_side_block("", $moddata, "", $modicon);
 
 
     if ($modnamesused) {
         foreach ($modnamesused as $modname => $modfullname) {
             $moddata[] = "<A HREF=\"../mod/$modname/index.php?id=$course->id\">".$modnamesplural[$modname]."</A>";
-            $modicon[] = "<IMG SRC=\"../mod/$modname/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"$modfullname\">";
+            $modicon[] = "<IMG SRC=\"../mod/$modname/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
         }
     }
-    print_simple_box("Activities", $align="CENTER", $width="100%", $color="$THEME->cellheading");
+    print_simple_box(get_string("activities"), $align="CENTER", $width="100%", $color="$THEME->cellheading");
     print_side_block("", $moddata, "", $modicon);
 
     // Print a form to search forums
     // Admin links and controls
 
     if (isteacher($course->id)) {
-        $adminicon[]="<IMG SRC=\"../pix/i/edit.gif\" HEIGHT=16 WIDTH=16 ALT=\"Edit\">";
+        echo "<BR>";
+        $admindata[]="<A HREF=\"edit.php?id=$course->id\">".get_string("settings")."...</A>";
+        $adminicon[]="<IMG SRC=\"../pix/i/settings.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
+        $admindata[]="<A HREF=\"log.php?id=$course->id\">".get_string("logs")."...</A>";
+        $adminicon[]="<IMG SRC=\"../pix/i/log.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
+        $admindata[]="<A HREF=\"../files/index.php?id=$course->id\">".get_string("files")."...</A>";
+        $adminicon[]="<IMG SRC=\"../files/pix/files.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
+
+        if ($teacherforum = forum_get_course_forum($course->id, "teacher")) {
+            $admindata[]="<A HREF=\"../mod/forum/view.php?f=$teacherforum->id\">".get_string("teacherforum")."</A>";
+            $adminicon[]="<IMG SRC=\"../mod/forum/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
+        }
+        $adminicon[]="<IMG SRC=\"../pix/i/edit.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
         if (isediting($course->id)) {
-            $admindata[]="<A HREF=\"view.php?id=$course->id&edit=off\">Turn editing off</A>";
+            $admindata[]="<A HREF=\"view.php?id=$course->id&edit=off\">".get_string("turneditingoff")."</A>";
         } else {
-            $admindata[]="<A HREF=\"view.php?id=$course->id&edit=on\">Turn editing on</A>";
+            $admindata[]="<A HREF=\"view.php?id=$course->id&edit=on\">".get_string("turneditingon")."</A>";
         }
 
-        if ($teacherforum = forum_get_course_forum($course->id, "teacher")) {
-            $admindata[]="<A HREF=\"../mod/forum/view.php?f=$teacherforum->id\">Teacher Forum...</A>";
-            $adminicon[]="<IMG SRC=\"../mod/forum/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"Teacher Forum\">";
-        }
-        $admindata[]="<A HREF=\"edit.php?id=$course->id\">Course settings...</A>";
-        $adminicon[]="<IMG SRC=\"../pix/i/settings.gif\" HEIGHT=16 WIDTH=16 ALT=\"Course\">";
-        $admindata[]="<A HREF=\"log.php?id=$course->id\">Logs...</A>";
-        $adminicon[]="<IMG SRC=\"../pix/i/log.gif\" HEIGHT=16 WIDTH=16 ALT=\"Log\">";
-        $admindata[]="<A HREF=\"../files/index.php?id=$course->id\">Files...</A>";
-        $adminicon[]="<IMG SRC=\"../files/pix/files.gif\" HEIGHT=16 WIDTH=16 ALT=\"Files\">";
-
-        print_simple_box("Administration", $align="CENTER", $width="100%", $color="$THEME->cellheading");
+
+        print_simple_box(get_string("administration"), $align="CENTER", $width="100%", $color="$THEME->cellheading");
         print_side_block("", $admindata, "", $adminicon);
     }
 
@@ -88,7 +95,7 @@
     // Start main column
     echo "</TD><TD WIDTH=\"*\">";
 
-    print_simple_box("Weekly Outline", $align="CENTER", $width="100%", $color="$THEME->cellheading");
+    print_simple_box(get_string("weeklyoutline"), $align="CENTER", $width="100%", $color="$THEME->cellheading");
     
     // Now all the weekly modules
     $timenow = time();
     $weekofseconds = 604800;
     $course->enddate = $course->startdate + ($weekofseconds * $course->numsections);
 
+    $streditsummary = get_string("editsummary");
+    $stradd         = get_string("add");
+
     echo "<TABLE BORDER=0 CELLPADDING=8 CELLSPACING=0 WIDTH=100%>";
     while ($weekdate < $course->enddate) {
 
         }
 
         if (isediting($course->id)) {
-            $thisweek->summary .= "&nbsp;<A HREF=\"editsection.php?id=$thisweek->id\"><IMG SRC=\"../pix/t/edit.gif\" BORDER=0 ALT=\"Edit summary\"></A></P>";
+            $thisweek->summary .= "&nbsp;<A TITLE=\"$streditsummary\" HREF=\"editsection.php?id=$thisweek->id\"><IMG SRC=\"../pix/t/edit.gif\" BORDER=0 ALT=\"$streditsummary\"></A></P>";
         }
 
         echo text_to_html($thisweek->summary);
         if (isediting($course->id)) {
             echo "<DIV ALIGN=right>";
             popup_form("$CFG->wwwroot/course/mod.php?id=$course->id&section=$week&add=", 
-                        $modnames, "section$week", "", "Add...");
+                        $modnames, "section$week", "", "$stradd...");
             echo "</DIV>";
         }
 
         echo "<TD NOWRAP BGCOLOR=\"$highlightcolor\" VALIGN=top ALIGN=CENTER WIDTH=10>";
         echo "<FONT SIZE=1>";
         if (isset($USER->section)) {
-            echo "<A HREF=\"view.php?id=$course->id&week=all\" TITLE=\"Show all weeks\"><IMG SRC=../pix/i/all.gif BORDER=0></A></FONT>";
+            $strshowallweeks = get_string("showallweeks");
+            echo "<A HREF=\"view.php?id=$course->id&week=all\" TITLE=\"$strshowallweeks\"><IMG SRC=../pix/i/all.gif BORDER=0></A></FONT>";
         } else {
-            echo "<A HREF=\"view.php?id=$course->id&week=$week\" TITLE=\"Show only week $week\"><IMG SRC=../pix/i/one.gif BORDER=0></A></FONT>";
+            $strshowonlyweek = get_string("showonlyweek", "", $week);
+            echo "<A HREF=\"view.php?id=$course->id&week=$week\" TITLE=\"$strshowonlyweek\"><IMG SRC=../pix/i/one.gif BORDER=0></A></FONT>";
         }
         echo "</TD>";
         echo "</TR>";
     echo "</TABLE>";
     
 
-    echo "</TD><TD WIDTH=180>";
+    echo "</TD><TD WIDTH=210>";
 
     // Print all the news items.
 
     if ($news = forum_get_course_forum($course->id, "news")) {
-        print_simple_box("Latest News", $align="CENTER", $width="100%", $color="$THEME->cellheading");
+        print_simple_box(get_string("latestnews"), $align="CENTER", $width="100%", $color="$THEME->cellheading");
         print_simple_box_start("CENTER", "100%", "#FFFFFF", 3, 0);
         echo "<FONT SIZE=1>";
         forum_print_latest_discussions($news->id, $course->newsitems, "minimal", "DESC", false);
     echo "<BR>";
     
     // Print all the recent activity
-    print_simple_box("Recent Activity", $align="CENTER", $width="100%", $color="$THEME->cellheading");
+    print_simple_box(get_string("sinceyourlastlogin"), $align="CENTER", $width="100%", $color="$THEME->cellheading");
     print_simple_box_start("CENTER", "100%", "#FFFFFF", 3, 0);
     print_recent_activity($course);
     print_simple_box_end();
index 610a2ec97fb14f1cde274706b7d2994c7d297647..7ca1f7279470929e95b81be86e21c6d6f349fc4d 100644 (file)
@@ -1,7 +1,9 @@
 <?PHP // $Id$ 
 
 $string[activity] = "Activity";
+$string[activities] = "Activities";
 $string[activityreport] = "Activity report";
+$string[add] = "Add";
 $string[addnewcourse] = "Add a new course";
 $string[addnewuser] = "Add a new user";
 $string[address] = "Address";
@@ -47,6 +49,7 @@ $string[description] = "Description";
 $string[edit] = "Edit \$a";
 $string[editcoursesettings] = "Edit course settings";
 $string[editmyprofile] = "Edit profile";
+$string[editthisactivity] = "Edit this activity";
 $string[edituser] = "Edit user accounts";
 $string[email] = "Email address";
 $string[emailformat] = "Email format";
@@ -81,6 +84,7 @@ password that you should have got from \$a";
 $string[entercourse] = "Click to enter this course";
 $string[enteremailaddress] = "Enter in your email address to reset your 
    password and have the new password sent to you via email.";
+$string[files] = "Files";
 $string[firstname] = "First name";
 $string[firsttime] = "Is this your first time here?";
 $string[forgotten] = "Forgotten your username or password?";
@@ -104,6 +108,8 @@ $string[invalidemail] = "Invalid email address";
 $string[lastaccess] = "Last access";
 $string[lastmodified] = "Last modified";
 $string[lastname] = "Last name";
+$string[latestnews] = "Latest news";
+$string[listofallpeople] = "List of all people";
 $string[location] = "Location";
 $string[loggedinas] = "You are logged in as \$a.";
 $string[loggedinnot] = "You are not logged in.";
@@ -132,7 +138,9 @@ $string[loginsteps] = "Hi! For full access to courses you'll need to take
    to log in and access any course you have enrolled in.
    </OL>";
 $string[logout] = "Logout";
+$string[logs] = "Logs";
 $string[mainmenu] = "Main menu";
+$string[markthistopic] = "Mark this topic as the current topic";
 $string[maximumchars] = "Maximum of \$a characters";
 $string[maximumgrade] = "Maximum grade";
 $string[missingcategory] = "You need to choose a category";
@@ -202,6 +210,7 @@ $string[passwordsenttext] = "
    <P><B>Please check your email for your new password</B>
    <P>The new password was automatically generated, so you might like to
    <A HREF=\$a->link>change it to something easier to remember</A>.";
+$string[people] = "People";
 $string[personalprofile] = "Personal profile";
 $string[phone] = "Phone";
 $string[returningtosite] = "Returning to this web site?";
@@ -211,7 +220,13 @@ $string[section] = "Section";
 $string[selectacountry] = "Select a country";
 $string[senddetails] = "Send my details via email";
 $string[serverlocaltime] = "Server's local time";
+$string[settings] = "Settings";
 $string[shortname] = "Short name";
+$string[showalltopics] = "Show all topics";
+$string[showallweeks] = "Show all weeks";
+$string[showonlytopic] = "Show only topic \$a";
+$string[showonlyweek] = "Show only week \$a";
+$string[sinceyourlastlogin] = "Since your last login";
 $string[site] = "Site";
 $string[sites] = "Sites";
 $string[sitelogs] = "Site logs";
@@ -223,12 +238,16 @@ $string[startsignup] = "Start now by creating a new account!";
 $string[summary] = "Summary";
 $string[summaryof] = "Summary of \$a";
 $string[supplyinfo] = "Please supply some information about yourself";
+$string[teacherforum] = "Teacher forum";
 $string[teacheronly] = "for the \$a only";
 $string[textformat] = "Plain text format";
 $string[timezone] = "Timezone";
 $string[thanks] = "Thanks";
 $string[todaylogs] = "Today's logs";
 $string[topic] = "Topic";
+$string[topicoutline] = "Topic outline";
+$string[turneditingoff] = "Turn editing off";
+$string[turneditingon] = "Turn editing on";
 $string[unenrol] = "Unenrol";
 $string[unenrolme] = "Unenrol me from \$a";
 $string[update] = "Update";
@@ -243,6 +262,7 @@ $string[userprofilefor] = "User profile for \$a";
 $string[users] = "Users";
 $string[webpage] = "Web page";
 $string[week] = "Week";
+$string[weeklyoutline] = "Weekly outline";
 $string[welcometocourse] = "Welcome to \$a";
 $string[welcometocoursetext] = "Welcome to \$a->coursename!
 
index e1e45c690cb9f652518e890faf944f8ce74a64fc..37ecfa5f3c1ff1c74b3b51dcbab0763b3a7b9ca8 100644 (file)
@@ -199,10 +199,12 @@ function update_course_icon($courseid) {
 
     if (isteacher($courseid)) {
         if ($USER->editing) {
-            return "<A TITLE=\"Turn editing OFF\" HREF=\"$CFG->wwwroot/course/view.php?id=$courseid&edit=off\"
+            return "<A TITLE=\"".get_string("turneditingoff")."\" 
+                    HREF=\"$CFG->wwwroot/course/view.php?id=$courseid&edit=off\"
                     TARGET=_top><IMG SRC=\"$CFG->wwwroot/pix/i/edit.gif\" ALIGN=right BORDER=0></A>";
         } else {
-            return "<A TITLE=\"Turn editing ON\" HREF=\"$CFG->wwwroot/course/view.php?id=$courseid&edit=on\"
+            return "<A TITLE=\"".get_string("turneditingon")."\" 
+                    HREF=\"$CFG->wwwroot/course/view.php?id=$courseid&edit=on\"
                     TARGET=_top><IMG SRC=\"$CFG->wwwroot/pix/i/edit.gif\" ALIGN=right BORDER=0></A>";
         }
     }
@@ -212,7 +214,7 @@ function update_module_icon($moduleid, $courseid) {
     global $CFG;
 
     if (isteacher($courseid)) {
-        return "<A TITLE=\"Edit this activity\" HREF=\"$CFG->wwwroot/course/mod.php?update=$moduleid&return=true\" TARGET=_top><IMG SRC=\"$CFG->wwwroot/pix/i/edit.gif\" ALIGN=right BORDER=0></A>";
+        return "<A TITLE=\"".get_string("editthisactivity")."\" HREF=\"$CFG->wwwroot/course/mod.php?update=$moduleid&return=true\" TARGET=_top><IMG SRC=\"$CFG->wwwroot/pix/i/edit.gif\" ALIGN=right BORDER=0></A>";
     }
 }