$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>";
$user = "";
}
+ $strlogs = get_string("logs");
+
if ($user || $date) {
$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().")");
} 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");
$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);
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 .= " <A HREF=editsection.php?id=$thissection->id><IMG SRC=\"../pix/t/edit.gif\" BORDER=0 ALT=\"Edit summary\"></A></P>";
+ $thissection->summary .= " <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§ion=$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();
// 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);
}
// 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 .= " <A HREF=\"editsection.php?id=$thisweek->id\"><IMG SRC=\"../pix/t/edit.gif\" BORDER=0 ALT=\"Edit summary\"></A></P>";
+ $thisweek->summary .= " <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§ion=$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();
<?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";
$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";
$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?";
$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.";
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";
<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?";
$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";
$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";
$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!
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>";
}
}
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>";
}
}