Changes related to language support ... get_string()

Minor little interface cleanups along the way
This commit is contained in:
martin 2002-08-11 15:41:54 +00:00
parent 70442fe3c4
commit 97c270e9a8
18 changed files with 139 additions and 110 deletions

View file

@ -45,17 +45,19 @@
}
print_header("Unenrol from $course->shortname", "$course->shortname", "<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A> -> Unenrol");
$strunenrol = get_string("unenrol");
print_header("$course->shortname: $strunenrol", "$course->fullname",
"<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A> -> $strunenrol");
if ($user->id == $USER->id) {
notice_yesno ("Are you sure you want to remove yourself from this course?",
"unenrol.php?id=$id&user=$user->id&confirm=yes", "$HTTP_REFERER");
$strunenrolsure = get_string("unenrolsure", "", get_string("yourself"));
} else {
notice_yesno ("Are you sure you want to remove $user->firstname $user->lastname from this course?",
"unenrol.php?id=$id&user=$user->id&confirm=yes", "$HTTP_REFERER");
$strunenrolsure = get_string("unenrolsure", "", "$user->firstname $user->lastname");
}
notice_yesno ($strunenrolsure, "unenrol.php?id=$id&user=$user->id&confirm=yes", "$HTTP_REFERER");
print_footer();
?>