Permalink
Browse files

Language changes for main library

  • Loading branch information...
1 parent a049e1d commit ae350059b3801717158ccdfc5c43f194acdc54e1 martin committed Aug 12, 2002
Showing with 9 additions and 9 deletions.
  1. +2 −0 lang/en/moodle.php
  2. +7 −9 lib/moodlelib.php
View
2 lang/en/moodle.php
@@ -97,6 +97,7 @@
$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[error] = "Error";
$string[files] = "Files";
$string[firstname] = "First name";
$string[firsttime] = "Is this your first time here?";
@@ -263,6 +264,7 @@
$string[someallowguest] = "Some courses may allow guest access";
$string[startdate] = "Course start date";
$string[startsignup] = "Start now by creating a new account!";
+$string[success] = "Success";
$string[summary] = "Summary";
$string[summaryof] = "Summary of \$a";
$string[supplyinfo] = "Please supply some information about yourself";
View
16 lib/moodlelib.php
@@ -412,7 +412,7 @@ function usertimezone($timezone=99) {
function error ($message, $link="") {
global $CFG, $SESSION;
- print_header("Error");
+ print_header(get_string("error"));
echo "<BR>";
print_simple_box($message, "center", "", "#FFBBBB");
@@ -463,7 +463,7 @@ function notice ($message, $link="") {
echo "<BR>";
print_simple_box($message, "center", "", "$THEME->cellheading");
- print_heading("<A HREF=\"$link\">Continue</A>");
+ print_heading("<A HREF=\"$link\">".get_string("continue")."</A>");
print_footer();
die;
}
@@ -474,9 +474,9 @@ function notice_yesno ($message, $linkyes, $linkno) {
print_simple_box_start("center", "", "$THEME->cellheading");
echo "<P ALIGN=CENTER><FONT SIZE=3>$message</FONT></P>";
echo "<P ALIGN=CENTER><FONT SIZE=3><B>";
- echo "<A HREF=\"$linkyes\">Yes</A>";
+ echo "<A HREF=\"$linkyes\">".get_string("yes")."</A>";
echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
- echo "<A HREF=\"$linkno\">No</A>";
+ echo "<A HREF=\"$linkno\">".get_string("no")."</A>";
echo "</B></FONT></P>";
print_simple_box_end();
}
@@ -490,7 +490,7 @@ function redirect($url, $message="", $delay=0) {
print_header();
echo "<CENTER>";
echo "<P>$message</P>";
- echo "<P>( <A HREF=\"$url\">Continue</A> )</P>";
+ echo "<P>( <A HREF=\"$url\">".get_string("continue")."</A> )</P>";
echo "</CENTER>";
}
die;
@@ -529,10 +529,10 @@ function execute_sql($command) {
$result = $db->Execute("$command");
if ($result) {
- echo "<P><FONT COLOR=green>SUCCESS</FONT></P>";
+ echo "<P><FONT COLOR=green><B>".get_string("success")."</B></FONT></P>";
return true;
} else {
- echo "<P><FONT COLOR=red>ERROR</FONT></P>";
+ echo "<P><FONT COLOR=red><B>".get_string("error")."</B></FONT></P>";
return false;
}
}
@@ -1576,8 +1576,6 @@ function moodle_needs_upgrading() {
return true;
}
return false;
-
-
}

0 comments on commit ae35005

Please sign in to comment.