From: martin Date: Tue, 2 Jul 2002 07:09:26 +0000 (+0000) Subject: Further internationalisation X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ed5ab9f7f5b4d7e207b1c67397d6f7b1fd365a16;p=moodle.git Further internationalisation --- diff --git a/help.php b/help.php index a31208b012..a16f4416fc 100644 --- a/help.php +++ b/help.php @@ -17,7 +17,12 @@ -lang/page/$file"); ?> +lang/page/$file")) { + include("lang/$CFG->lang/page/$file"); + } else { + include("lang/en/page/$file"); + } +?> diff --git a/index.php b/index.php index 5f25c35c14..aa6ba51e66 100644 --- a/index.php +++ b/index.php @@ -13,7 +13,7 @@ if (isset($USER->id)) { $headerbutton = update_course_icon($site->id); } else { - $headerbutton = "Log in"; + $headerbutton = "".get_string("login").""; } print_header("$site->fullname", "$site->fullname", "", "", "summary))."\">", @@ -30,10 +30,14 @@ if ($site->newsitems > 0 or $readings or $USER->editing) { - print_simple_box("Main Menu", $align="CENTER", $width="100%", $color="$THEME->cellheading"); + print_simple_box(get_string("mainmenu"), $align="CENTER", $width="100%", $color="$THEME->cellheading"); if ($site->newsitems > 0 ) { - echo "
  • Courses
  • "; + echo "
  • ". + get_string("courses"). + "
  • "; } if ($readings) { @@ -42,7 +46,8 @@ } } if ($USER->editing) { - echo "

    wwwroot/course/mod.php?id=$site->id§ion=0&add=reading\">Add Reading...

    "; + echo "

    wwwroot/course/mod.php?id=$site->id§ion=0&add=reading\">". + get_string("addreading", "reading")."...

    "; } else { echo "

    "; } @@ -50,10 +55,10 @@ if (isadmin()) { - print_simple_box("Admin", $align="CENTER", $width="100%", $color="$THEME->cellheading"); - echo "
  • wwwroot/admin/\">Admin Page...
  • "; - echo "
  • wwwroot/course/log.php?id=$site->id\">Site logs...
  • "; - echo "
  • wwwroot/admin/site.php\">Site settings...
  • "; + print_simple_box(get_string("admin"), $align="CENTER", $width="100%", $color="$THEME->cellheading"); + echo "
  • wwwroot/admin/\">".get_string("adminpage")."...
  • "; + echo "
  • wwwroot/course/log.php?id=$site->id\">".get_string("sitelogs")."...
  • "; + echo "
  • wwwroot/admin/site.php\">".get_string("sitesettings")."...
  • "; } ?> @@ -61,7 +66,7 @@ newsitems == 0 ) { - print_simple_box("Available Courses", $align="CENTER", $width="100%", $color="$THEME->cellheading"); + print_simple_box(get_string("availablecourses"), "CENTER", "100%", "$THEME->cellheading"); echo "\"\"
    "; print_all_courses(); @@ -73,19 +78,19 @@ if (isset($USER->id)) { $SESSION->fromdiscuss = "$CFG->wwwroot"; if (is_subscribed($USER->id, $newsforum->id)) { - $subtext = "Unsubscribe from news"; + $subtext = get_string("unsubscribe", "forum"); } else { - $subtext = "Subscribe me by mail"; + $subtext = get_string("subscribe", "forum"); } $headertext = " - +
    Site News".get_string("sitenews")." id\">$subtext
    "; } else { - $headertext = "Site News"; + $headertext = get_string("sitenews"); } - print_simple_box("$headertext", $align="CENTER", $width="100%", $color="$THEME->cellheading"); + print_simple_box($headertext, "CENTER", "100%", $THEME->cellheading); echo "\"\"
    "; print_forum_latest_topics($newsforum->id, $site->newsitems); } @@ -97,7 +102,7 @@ if ($USER->editing) { $site->summary .= "
    "; } - print_simple_box($site->summary, $align="", $width="100%", $color="$THEME->cellheading"); + print_simple_box($site->summary, "", "100%", $THEME->cellheading); ?> diff --git a/lang/en/strings.php b/lang/en/strings.php index 90b9785653..3551c2a560 100644 --- a/lang/en/strings.php +++ b/lang/en/strings.php @@ -1,6 +1,16 @@