From 3be17157153affaaff2a55442672278381890b23 Mon Sep 17 00:00:00 2001 From: martin Date: Tue, 13 Aug 2002 15:40:07 +0000 Subject: [PATCH] Language fixes and cleanups for admin/site.* --- admin/site.html | 38 +++++++++++++++++++++----------------- admin/site.php | 8 ++++---- lang/en/moodle.php | 8 ++++++++ 3 files changed, 33 insertions(+), 21 deletions(-) diff --git a/admin/site.html b/admin/site.html index c0540d350b..d27a5d3933 100644 --- a/admin/site.html +++ b/admin/site.html @@ -1,45 +1,49 @@
- + - + - + - + - +

Full site name:

:

Short name for site (eg single word):

:

Front page description:

:


+ +

Front page format:

:

"Show list of courses", - "1" => "1 news item", - "2" => "2 news items", - "3" => "3 news items", - "4" => "4 news items", - "5" => "5 news items", - "6" => "6 news items", - "7" => "7 news items", - "8" => "8 news items", - "9" => "9 news items", - "10" => "10 news items"); - choose_from_menu ($options, "newsitems", "$form->newsitems"); + $newsitem = get_string("newsitem"); + $newsitems = get_string("newsitems"); + $options = array("0" => get_string("showlistofcourses"), + "1" => "1 $newsitem", + "2" => "2 $newsitems", + "3" => "3 $newsitems", + "4" => "4 $newsitems", + "5" => "5 $newsitems", + "6" => "6 $newsitems", + "7" => "7 $newsitems", + "8" => "8 $newsitems", + "9" => "9 $newsitems", + "10" => "10 $newsitems"); + choose_from_menu ($options, "newsitems", "$form->newsitems", ""); formerr($err["newsitems"]); ?>
">
diff --git a/admin/site.php b/admin/site.php index 9b0d0661eb..9773a3f889 100644 --- a/admin/site.php +++ b/admin/site.php @@ -40,11 +40,11 @@ } } die; + } else { foreach ($err as $key => $value) { $focus = "form.$key"; } - } } @@ -77,13 +77,13 @@ function validate_form(&$form, &$err) { if (empty($form->fullname)) - $err["fullname"] = "Missing site name"; + $err["fullname"] = get_string("missingsitename"); if (empty($form->shortname)) - $err["shortname"] = "Missing short site name"; + $err["shortname"] = get_string("missingshortsitename"); if (empty($form->summary)) - $err["summary"] = "Missing site description"; + $err["summary"] = get_string("missingsitedescription"); return; } diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 6cb144d723..58608f234c 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -113,9 +113,12 @@ $string[format] = "Format"; $string[formatsocial] = "Social format"; $string[formattopics] = "Topics format"; $string[formatweeks] = "Weekly format"; +$string[frontpagedescription] = "Front page description"; +$string[frontpageformat] = "Front page format"; $string[fulllistofcourses] = "Full list of courses"; $string[fullprofile] = "Full profile"; $string[fullname] = "Full name"; +$string[fullsitename] = "Full site name"; $string[grade] = "Grade"; $string[guestsno] = "No, do not allow guests in"; $string[guestsyes] = "Yes, allow 'guest' student in"; @@ -180,6 +183,9 @@ $string[missinglastname] = "Missing last name"; $string[missingshortname] = "Missing short name"; $string[missingnewpassword] = "Missing new password"; $string[missingpassword] = "Missing password"; +$string[missingshortsitename] = "Missing short site name"; +$string[missingsitedescription] = "Missing site description"; +$string[missingsitename] = "Missing site name"; $string[missingstudent] = "Must choose something"; $string[missingsummary] = "Missing summary"; $string[missingteacher] = "Must choose something"; @@ -265,8 +271,10 @@ $string[senddetails] = "Send my details via email"; $string[serverlocaltime] = "Server's local time"; $string[settings] = "Settings"; $string[shortname] = "Short name"; +$string[shortsitename] = "Short name for site (eg single word)"; $string[showalltopics] = "Show all topics"; $string[showallweeks] = "Show all weeks"; +$string[showlistofcourses] = "Show list of courses"; $string[showonlytopic] = "Show only topic \$a"; $string[showonlyweek] = "Show only week \$a"; $string[showtheselogs] = "Show these logs"; -- 2.39.5