]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-10724 Finished help strings for category edit form
authornicolasconnault <nicolasconnault>
Wed, 8 Aug 2007 04:35:27 +0000 (04:35 +0000)
committernicolasconnault <nicolasconnault>
Wed, 8 Aug 2007 04:35:27 +0000 (04:35 +0000)
grade/edit/tree/category_form.php
lang/en_utf8/grades.php

index 5aadf830df59861082f854a26e0f1d1cdbfa2d40..2ef411d7683b1ea6ac81adc134503a3c48145869 100644 (file)
@@ -32,6 +32,8 @@ class edit_category_form extends moodleform {
 
         if (!empty($CFG->enableoutcomes)) {
             $mform->addElement('advcheckbox', 'aggregateoutcomes', get_string('aggregateoutcomes', 'grades'));
+            $mform->setHelpButton('aggregateoutcomes', array(false, get_string('aggregateoutcomes', 'grades'),
+                              false, true, false, get_string("aggregateoutcomeshelp", 'grades')));
         }
 
         $options = array();
@@ -40,9 +42,13 @@ class edit_category_form extends moodleform {
             $options[$i] = $i;
         }
         $mform->addElement('select', 'keephigh', get_string('keephigh', 'grades'), $options);
+        $mform->setHelpButton('keephigh', array(false, get_string('keephigh', 'grades'),
+                          false, true, false, get_string("keephighhelp", 'grades')));
         $mform->disabledIf('keephigh', 'droplow', 'noteq', 0);
 
         $mform->addElement('select', 'droplow', get_string('droplow', 'grades'), $options);
+        $mform->setHelpButton('droplow', array(false, get_string('droplow', 'grades'),
+                          false, true, false, get_string("droplowhelp", 'grades')));
         $mform->disabledIf('droplow', 'keephigh', 'noteq', 0);
 
         // user preferences
index 51f0ac3524415c171e58bd66e3570bc2660a8d56..43c149793e0c75aae49a901443407359c99d449c 100644 (file)
@@ -22,6 +22,7 @@ $string['aggregatemaxgraded'] = 'Highest grade of non-empty grades';
 $string['aggregatemodeall'] = 'Mode of all grades';
 $string['aggregatemodegraded'] = 'Mode of non-empty grades';
 $string['aggregateoutcomes'] = 'Include outcomes in aggregation';
+$string['aggregateoutcomeshelp'] = 'Including outcomes in aggregation may not lead to the desired overall grade, so you have the option to include or leave them out.';
 $string['aggregateweightedmeanall'] = 'Weighted mean of all grades';
 $string['aggregateweightedmeangraded'] = 'Weighted mean of non-empty grades';
 $string['aggregation'] = 'Aggregation';
@@ -98,6 +99,7 @@ $string['displaypercent'] = 'Display Percents';
 $string['displaypoints'] = 'Display Points';
 $string['displayweighted'] = 'Display Weighted Grades';
 $string['droplow'] = 'Drop the lowest';
+$string['droplowhelp'] = 'If set, this option will drop the X lowest grades, X being the selected value for this option.';
 $string['dropped'] = 'Dropped';
 $string['dropxlowest'] = 'Drop X Lowest';
 $string['dropxlowestwarning'] = 'Note: If you use drop x lowest the grading assumes that all items in the category have the same point value. If point values differ results will be unpredictable';
@@ -205,6 +207,7 @@ $string['itemnamehelp'] = 'The name of this item, pushed in by the module.';
 $string['items'] = 'Items';
 $string['itemsedit'] = 'Edit grade item';
 $string['keephigh'] = 'Keep the highest';
+$string['keephighhelp'] = 'If set, this option will only keep the X highest grades, X being the selected value for this option.';
 $string['left'] = 'Left';
 $string['lettergrade'] = 'Letter Grade';
 $string['lettergradenonnumber'] = 'Low and/or High grade were non-numeric for';