Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Language changes for main library

  • Loading branch information...
commit ae350059b3801717158ccdfc5c43f194acdc54e1 1 parent a049e1d
martin authored

Showing 2 changed files with 9 additions and 9 deletions. Show diff stats Hide diff stats

  1. +2 0  lang/en/moodle.php
  2. +7 9 lib/moodlelib.php
2  lang/en/moodle.php
@@ -97,6 +97,7 @@
97 97 $string[entercourse] = "Click to enter this course";
98 98 $string[enteremailaddress] = "Enter in your email address to reset your
99 99 password and have the new password sent to you via email.";
  100 +$string[error] = "Error";
100 101 $string[files] = "Files";
101 102 $string[firstname] = "First name";
102 103 $string[firsttime] = "Is this your first time here?";
@@ -263,6 +264,7 @@
263 264 $string[someallowguest] = "Some courses may allow guest access";
264 265 $string[startdate] = "Course start date";
265 266 $string[startsignup] = "Start now by creating a new account!";
  267 +$string[success] = "Success";
266 268 $string[summary] = "Summary";
267 269 $string[summaryof] = "Summary of \$a";
268 270 $string[supplyinfo] = "Please supply some information about yourself";
16 lib/moodlelib.php
@@ -412,7 +412,7 @@ function usertimezone($timezone=99) {
412 412 function error ($message, $link="") {
413 413 global $CFG, $SESSION;
414 414
415   - print_header("Error");
  415 + print_header(get_string("error"));
416 416 echo "<BR>";
417 417 print_simple_box($message, "center", "", "#FFBBBB");
418 418
@@ -463,7 +463,7 @@ function notice ($message, $link="") {
463 463
464 464 echo "<BR>";
465 465 print_simple_box($message, "center", "", "$THEME->cellheading");
466   - print_heading("<A HREF=\"$link\">Continue</A>");
  466 + print_heading("<A HREF=\"$link\">".get_string("continue")."</A>");
467 467 print_footer();
468 468 die;
469 469 }
@@ -474,9 +474,9 @@ function notice_yesno ($message, $linkyes, $linkno) {
474 474 print_simple_box_start("center", "", "$THEME->cellheading");
475 475 echo "<P ALIGN=CENTER><FONT SIZE=3>$message</FONT></P>";
476 476 echo "<P ALIGN=CENTER><FONT SIZE=3><B>";
477   - echo "<A HREF=\"$linkyes\">Yes</A>";
  477 + echo "<A HREF=\"$linkyes\">".get_string("yes")."</A>";
478 478 echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
479   - echo "<A HREF=\"$linkno\">No</A>";
  479 + echo "<A HREF=\"$linkno\">".get_string("no")."</A>";
480 480 echo "</B></FONT></P>";
481 481 print_simple_box_end();
482 482 }
@@ -490,7 +490,7 @@ function redirect($url, $message="", $delay=0) {
490 490 print_header();
491 491 echo "<CENTER>";
492 492 echo "<P>$message</P>";
493   - echo "<P>( <A HREF=\"$url\">Continue</A> )</P>";
  493 + echo "<P>( <A HREF=\"$url\">".get_string("continue")."</A> )</P>";
494 494 echo "</CENTER>";
495 495 }
496 496 die;
@@ -529,10 +529,10 @@ function execute_sql($command) {
529 529 $result = $db->Execute("$command");
530 530
531 531 if ($result) {
532   - echo "<P><FONT COLOR=green>SUCCESS</FONT></P>";
  532 + echo "<P><FONT COLOR=green><B>".get_string("success")."</B></FONT></P>";
533 533 return true;
534 534 } else {
535   - echo "<P><FONT COLOR=red>ERROR</FONT></P>";
  535 + echo "<P><FONT COLOR=red><B>".get_string("error")."</B></FONT></P>";
536 536 return false;
537 537 }
538 538 }
@@ -1576,8 +1576,6 @@ function moodle_needs_upgrading() {
1576 1576 return true;
1577 1577 }
1578 1578 return false;
1579   -
1580   -
1581 1579 }
1582 1580
1583 1581

0 comments on commit ae35005

Please sign in to comment.
Something went wrong with that request. Please try again.