From: martin Date: Mon, 12 Aug 2002 07:37:47 +0000 (+0000) Subject: Language changes for main library X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ae350059b3801717158ccdfc5c43f194acdc54e1;p=moodle.git Language changes for main library --- diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 02e9d715f1..fed8ed69f5 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -97,6 +97,7 @@ $string[enrolmentkeyhint] = "That enrolment key was incorrect, please try again< $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[sitesettings] = "Site settings"; $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"; diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 90c9b81567..d43e610c21 100644 --- a/lib/moodlelib.php +++ b/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 "
"; print_simple_box($message, "center", "", "#FFBBBB"); @@ -463,7 +463,7 @@ function notice ($message, $link="") { echo "
"; print_simple_box($message, "center", "", "$THEME->cellheading"); - print_heading("Continue"); + print_heading("".get_string("continue").""); print_footer(); die; } @@ -474,9 +474,9 @@ function notice_yesno ($message, $linkyes, $linkno) { print_simple_box_start("center", "", "$THEME->cellheading"); echo "

$message

"; echo "

"; - echo "Yes"; + echo "".get_string("yes").""; echo "      "; - echo "No"; + echo "".get_string("no").""; echo "

"; print_simple_box_end(); } @@ -490,7 +490,7 @@ function redirect($url, $message="", $delay=0) { print_header(); echo "
"; echo "

$message

"; - echo "

( Continue )

"; + echo "

( ".get_string("continue")." )

"; echo "
"; } die; @@ -529,10 +529,10 @@ function execute_sql($command) { $result = $db->Execute("$command"); if ($result) { - echo "

SUCCESS

"; + echo "

".get_string("success")."

"; return true; } else { - echo "

ERROR

"; + echo "

".get_string("error")."

"; return false; } } @@ -1576,8 +1576,6 @@ function moodle_needs_upgrading() { return true; } return false; - - }