From 616492113394aa656ef0dd23b79b28466b51b0b4 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 16 Jul 2007 06:17:45 +0000 Subject: [PATCH] Changes "show scales" everywhere to "show ranges" --- grade/report/grader/lib.php | 6 +++--- grade/report/grader/preferences_form.php | 2 +- grade/report/grader/settings.php | 4 ++-- lang/en_utf8/grades.php | 7 ++++--- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/grade/report/grader/lib.php b/grade/report/grader/lib.php index 2784f972cb..2a1f32de3b 100644 --- a/grade/report/grader/lib.php +++ b/grade/report/grader/lib.php @@ -390,7 +390,7 @@ class grade_report_grader extends grade_report { $html .= $this->print_toggle('grandtotals', true); $html .= $this->print_toggle('groups', true); - $html .= $this->print_toggle('scales', true); + $html .= $this->print_toggle('ranges', true); $html .= ''; return $html; } @@ -857,8 +857,8 @@ class grade_report_grader extends grade_report { */ function get_scalehtml() { $scalehtml = ''; - if ($this->get_pref('showscales')) { - $scalehtml = ''.$this->get_lang_string('range','grades').''; + if ($this->get_pref('showranges')) { + $scalehtml = ''.$this->get_lang_string('range','grade').''; foreach ($this->items as $item) { $scalehtml .= ''. $this->get_grade_clean($item->grademin).'-'. $this->get_grade_clean($item->grademax).''; } diff --git a/grade/report/grader/preferences_form.php b/grade/report/grader/preferences_form.php index 46b0a6e8f2..e6f50a4782 100644 --- a/grade/report/grader/preferences_form.php +++ b/grade/report/grader/preferences_form.php @@ -26,7 +26,7 @@ class grader_report_preferences_form extends moodleform { 'showgrandtotals' => 'advcheckbox', 'showgroups' => 'advcheckbox', 'showlocks' => 'advcheckbox', - 'showscales' => 'advcheckbox', + 'showranges' => 'advcheckbox', 'quickgrading' => 'advcheckbox', 'quickfeedback' => 'advcheckbox', 'aggregationposition' => array(get_string('left', 'grades'), get_string('right', 'grades')), diff --git a/grade/report/grader/settings.php b/grade/report/grader/settings.php index 4f40233238..553dd4af04 100644 --- a/grade/report/grader/settings.php +++ b/grade/report/grader/settings.php @@ -38,8 +38,8 @@ $settings->add(new admin_setting_configcheckbox('grade_report_showgrandtotals', $settings->add(new admin_setting_configcheckbox('grade_report_showlocks', get_string('showlocks', 'grades'), get_string('configshowlocks', 'grades'), 0)); -$settings->add(new admin_setting_configcheckbox('grade_report_showscales', get_string('showscales', 'grades'), - get_string('configshowscales', 'grades'), 0)); +$settings->add(new admin_setting_configcheckbox('grade_report_showranges', get_string('showranges', 'grades'), + get_string('configshowranges', 'grades'), 0)); $settings->add(new admin_setting_configcheckbox('grade_report_quickgrading', get_string('quickgrading', 'grades'), get_string('configquickgrading', 'grades'), 1)); diff --git a/lang/en_utf8/grades.php b/lang/en_utf8/grades.php index 7ba56acfdc..c2d70d86ea 100644 --- a/lang/en_utf8/grades.php +++ b/lang/en_utf8/grades.php @@ -44,7 +44,7 @@ $string['configshowgrandtotals'] = 'Show column totals in the grader report.'; $string['configshowgroups'] = 'Show group totals and means in the grader report.'; $string['configshowlocks'] = 'Whether to show a lock/unlock icon near each grade.'; $string['configshowfeedback'] = 'Whether to show a feedback icon (for adding/editing) near each grade.'; -$string['configshowscales'] = 'Display a row showing the scale for each grading item, in the grader report.'; +$string['configshowranges'] = 'Display a row showing the range of possible for each grading item in the grader report.'; $string['configstudentsperpage'] = 'The number of students to display per page in the grader report.'; $string['contract'] = 'Contract Category'; $string['createcategory'] = 'Create Category'; @@ -125,7 +125,7 @@ $string['hidegrandtotals'] = 'Hide grandtotals'; $string['hidegroups'] = 'Hide groups'; $string['hidelocks'] = 'Hide locks'; $string['hidefeedback'] = 'Hide feedback'; -$string['hidescales'] = 'Hide scales'; +$string['hideranges'] = 'Hide ranges'; $string['highgradeascending'] = 'Sort by high grade ascending'; $string['highgradedescending'] = 'Sort by high grade descending'; $string['highgradeletter'] = 'High'; @@ -187,6 +187,7 @@ $string['pointsdescending'] = 'Sort by points descdending'; $string['preferences'] = 'Preferences'; $string['quickfeedback'] = 'Quick Feedback'; $string['quickgrading'] = 'Quick Grading'; +$string['range'] = 'Range'; $string['rank'] = 'Rank'; $string['raw'] = 'Raw'; $string['rawpct'] = 'Raw %%'; @@ -213,7 +214,7 @@ $string['showgrandtotals'] = 'Show column totals'; $string['showgroups'] = 'Show groups'; $string['showlocks'] = 'Show locks'; $string['showfeedback'] = 'Show feedback'; -$string['showscales'] = 'Show scales'; +$string['showranges'] = 'Show ranges'; $string['showhiddenitems'] = 'Show Hidden Items'; $string['sort'] = 'sort'; $string['sortasc'] = 'Sort in ascending order'; -- 2.39.5