]> git.mjollnir.org Git - moodle.git/commitdiff
Changed "Grand totals" to "averages" everywhere
authormoodler <moodler>
Mon, 16 Jul 2007 07:04:52 +0000 (07:04 +0000)
committermoodler <moodler>
Mon, 16 Jul 2007 07:04:52 +0000 (07:04 +0000)
grade/report/grader/lib.php
grade/report/grader/preferences_form.php
grade/report/grader/settings.php
lang/en_utf8/grades.php

index 739a845b967b63fc9d217b290e70d4ee6eb86bfa..2e716ec5a55e37fae2c78a40d1241eda4f08f646 100644 (file)
@@ -388,7 +388,7 @@ class grade_report_grader extends grade_report {
             $html .= $this->print_toggle('calculations', true);
         }
 
-        $html .= $this->print_toggle('grandtotals', true);
+        $html .= $this->print_toggle('averages', true);
         $html .= $this->print_toggle('groups', true);
         $html .= $this->print_toggle('ranges', true);
         $html .= '</div>';
@@ -407,7 +407,7 @@ class grade_report_grader extends grade_report {
         $icons = array('eyecons' => 'hide',
                        'calculations' => 'calc',
                        'locks' => 'lock',
-                       'grandtotals' => 'sigma');
+                       'averages' => 'sigma');
 
         $pref_name = 'grade_report_show' . $type;
         $show_pref = get_user_preferences($pref_name, $CFG->$pref_name);
@@ -799,7 +799,7 @@ class grade_report_grader extends grade_report {
 
         $gradeavghtml = '';
         $numusers = $this->get_numusers(false); // find total number of users, without group constraint
-        if ($this->get_pref('showgrandtotals')) {
+        if ($this->get_pref('showaverages')) {
 
         /** SQL for finding the SUM grades of all visible users ($CFG->gradebookroles) */
         // do not sum -1 (no grade), treat as 0 for now
@@ -820,7 +820,7 @@ class grade_report_grader extends grade_report {
                 $classsum[$itemid] = $csum;
             }
 
-            $gradeavghtml = '<tr><th>'.get_string('average').'</th>';
+            $gradeavghtml = '<tr><th>'.get_string('average', 'grades').'</th>';
             foreach ($this->items as $item) {
                 if (!isset($classsum[$item->id])) {
                     $gradeavghtml .= '<td>-</td>';
index e6f50a478239e48ed40947a9242bd5f5ebb71827..16c98e67a9bf0a4ba01eb110331f8cec45d6acaf 100644 (file)
@@ -23,7 +23,7 @@ class grader_report_preferences_form extends moodleform {
                              'enableajax'             => 'advcheckbox',
                              'showcalculations'       => 'advcheckbox',
                              'showeyecons'            => 'advcheckbox',
-                             'showgrandtotals'        => 'advcheckbox',
+                             'showaverages'           => 'advcheckbox',
                              'showgroups'             => 'advcheckbox',
                              'showlocks'              => 'advcheckbox',
                              'showranges'             => 'advcheckbox',
@@ -32,7 +32,7 @@ class grader_report_preferences_form extends moodleform {
                              'aggregationposition'    => array(get_string('left', 'grades'), get_string('right', 'grades')),
                              'aggregationview'        => array(get_string('full', 'grades'), get_string('compact', 'grades')),
                              'gradedisplaytype'       => array(get_string('raw', 'grades'), get_string('percentage', 'grades')),
-                             'grandtotalsdisplaytype' => array(get_string('raw', 'grades'), get_string('percentage', 'grades')),
+                             'averagesdisplaytype'    => array(get_string('raw', 'grades'), get_string('percentage', 'grades')),
                              'decimalpoints'          => array(0, 1, 2, 3, 4, 5),
                              'studentsperpage'        => 'text');
 
index 553dd4af047525433081670749c9054de3210236..ac314402b5104abd2542f7c83dec4c79f338b1ed 100644 (file)
@@ -19,8 +19,8 @@ $settings->add(new admin_setting_configselect('grade_report_gradedisplaytype', g
                                           get_string('configgradedisplaytype', 'grades'), false,
                                           array(get_string('raw', 'grades'), get_string('percentage', 'grades'))));
 
-$settings->add(new admin_setting_configselect('grade_report_grandtotalsdisplaytype', get_string('grandtotalsdisplaytype', 'grades'),
-                                          get_string('configgrandtotalsdisplaytype', 'grades'), false,
+$settings->add(new admin_setting_configselect('grade_report_averagesdisplaytype', get_string('averagesdisplaytype', 'grades'),
+                                          get_string('configaveragesdisplaytype', 'grades'), false,
                                           array(get_string('raw', 'grades'), get_string('percentage', 'grades'))));
 
 $settings->add(new admin_setting_configcheckbox('grade_report_showcalculations', get_string('showcalculations', 'grades'),
@@ -32,8 +32,8 @@ $settings->add(new admin_setting_configcheckbox('grade_report_showeyecons', get_
 $settings->add(new admin_setting_configcheckbox('grade_report_showgroups', get_string('showgroups', 'grades'),
                                             get_string('configshowgroups', 'grades'), 0));
 
-$settings->add(new admin_setting_configcheckbox('grade_report_showgrandtotals', get_string('showgrandtotals', 'grades'),
-                                            get_string('configshowgrandtotals', 'grades'), 0));
+$settings->add(new admin_setting_configcheckbox('grade_report_showaverages', get_string('showaverages', 'grades'),
+                                            get_string('configshowaverages', 'grades'), 0));
 
 $settings->add(new admin_setting_configcheckbox('grade_report_showlocks', get_string('showlocks', 'grades'),
                                             get_string('configshowlocks', 'grades'), 0));
index c2d70d86ea99a3674ffe061038e2068388bad0ea..9cd26ca58606cbc93ad60c3d79840de0dcb8f0d1 100644 (file)
@@ -14,6 +14,7 @@ $string['allgrades'] = 'All grades by category';
 $string['allstudents'] = 'All Students';
 $string['autosort'] = 'Auto-sort';
 $string['average'] = 'Average';
+$string['averagesdisplaytype'] = 'Column averages display type';
 $string['badgrade'] = 'Supplied grade is invalid';
 $string['baduser'] = 'Supplied user is invalid';
 $string['bonuspoints'] = 'Bonus Points';
@@ -35,12 +36,12 @@ $string['configbulkcheckboxes'] = 'Checkboxes near each grade for Bulk grade ope
 $string['configdecimalpoints'] = 'The number of decimal points to display for each grade. This can be overriden per grading item.';
 $string['configenableajax'] = 'Adds a layer of AJAX functionality to the grader report, simplifying and speeding up common operations. Depends on Javascript being switched on at the user\'s browser level.';
 $string['configgradedisplaytype'] = 'Grades can be shown as raw grades or as percentages (in reference to the minimum and maximum grades).';
-$string['configgrandtotalsdisplaytype'] = 'Column totals can be shown as raw grades or as percentages (in reference to the minimum and maximum grades).';
+$string['configaveragesdisplaytype'] = 'Column totals can be shown as raw grades or as percentages (in reference to the minimum and maximum grades).';
 $string['configquickfeedback'] = 'Quick Feedback adds a text input element in each grade cell on the grader report, allowing you to edit many grades at once. You can then click the Update button to perform all these changes at once, instead of one at a time.';
 $string['configquickgrading'] = 'Quick Grading adds a text input element in each grade cell on the grader report, allowing you to edit the feedback for many grades at once. You can then click the Update button to perform all these changes at once, instead of one at a time.';
 $string['configshowcalculations'] = 'Whether to show calculator icons near each grade item and category, tooltips over calculated items and a visual indicator that a column is calculated.';
 $string['configshoweyecons'] = 'Whether to show a show/hide icon near each grade (controlling its visibility to the user).';
-$string['configshowgrandtotals'] = 'Show column totals in the grader report.';
+$string['configshowaverages'] = 'Show column averages 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.';
@@ -116,12 +117,11 @@ $string['gradereports'] = 'Grades report';
 $string['graderreport'] = 'Grader report';
 $string['gradetype'] = 'Grade type';
 $string['gradeweighthelp'] = 'Grade Weight Help';
-$string['grandtotalsdisplaytype'] = 'Column totals display type';
 $string['hideadvanced'] = 'Hide Advanced Features';
 $string['hidecalculations'] = 'Hide calculations';
 $string['hidecategory'] = 'Hidden';
 $string['hideeyecons'] = 'Hide show/hide icons';
-$string['hidegrandtotals'] = 'Hide grandtotals';
+$string['hideaverages'] = 'Hide averages';
 $string['hidegroups'] = 'Hide groups';
 $string['hidelocks'] = 'Hide locks';
 $string['hidefeedback'] = 'Hide feedback';
@@ -210,7 +210,7 @@ $string['setweights'] = 'Set Weights';
 $string['showallstudents'] = 'Show All Students';
 $string['showcalculations'] = 'Show calculations';
 $string['showeyecons'] = 'Show show/hide icons';
-$string['showgrandtotals'] = 'Show column totals';
+$string['showaverages'] = 'Show column averages';
 $string['showgroups'] = 'Show groups';
 $string['showlocks'] = 'Show locks';
 $string['showfeedback'] = 'Show feedback';