$mform->addElement('text', 'itemname', get_string('itemname', 'grades'));
$mform->addElement('text', 'iteminfo', get_string('iteminfo', 'grades'));
- $mform->setHelpButton('iteminfo', array(false, get_string('iteminfo', 'grades'), false, true, false, 'iteminfohelp'));
+ $mform->setHelpButton('iteminfo', array(false, get_string('iteminfo', 'grades'),
+ false, true, false, get_string('iteminfohelp', 'grades')));
$mform->addElement('text', 'idnumber', get_string('idnumber'));
- $mform->setHelpButton('idnumber', array(false, get_string('idnumber', 'grades'), false, true, false, 'idnumberhelp'));
+ $mform->setHelpButton('idnumber', array(false, get_string('idnumber'),
+ false, true, false, get_string('idnumberhelp', 'grades')));
$options = array(GRADE_TYPE_NONE=>get_string('typenone', 'grades'),
GRADE_TYPE_VALUE=>get_string('typevalue', 'grades'),
GRADE_TYPE_TEXT=>get_string('typetext', 'grades'));
$mform->addElement('select', 'gradetype', get_string('gradetype', 'grades'), $options);
- $mform->setHelpButton('gradetype', array(false, get_string('gradetype', 'grades'), false, true, false, 'gradetypehelp'));
+ $mform->setHelpButton('gradetype', array(false, get_string('gradetype', 'grades'),
+ false, true, false, get_string('gradetypehelp', 'grades')));
$mform->setDefault('gradetype', GRADE_TYPE_VALUE);
//$mform->addElement('text', 'calculation', get_string('calculation', 'grades'));
}
}
$mform->addElement('select', 'scaleid', get_string('scale'), $options);
- $mform->setHelpButton('scaleid', array(false, get_string('scaleid', 'grades'), false, true, false, 'scaleidhelp'));
+ $mform->setHelpButton('scaleid', array(false, get_string('scaleid', 'grades'),
+ false, true, false, get_string('scaleidhelp', 'grades')));
$mform->disabledIf('scaleid', 'gradetype', 'noteq', GRADE_TYPE_SCALE);
$mform->addElement('text', 'grademax', get_string('grademax', 'grades'));
- $mform->setHelpButton('grademax', array(false, get_string('grademax', 'grades'), false, true, false, 'grademaxhelp'));
+ $mform->setHelpButton('grademax', array(false, get_string('grademax', 'grades'),
+ false, true, false, get_string('grademaxhelp', 'grades')));
$mform->disabledIf('grademax', 'gradetype', 'noteq', GRADE_TYPE_VALUE);
$mform->setDefault('grademax', 100.0);
$mform->addElement('text', 'grademin', get_string('grademin', 'grades'));
- $mform->setHelpButton('grademin', array(false, get_string('grademin', 'grades'), false, true, false, 'grademinhelp'));
+ $mform->setHelpButton('grademin', array(false, get_string('grademin', 'grades'),
+ false, true, false, get_string('grademinhelp', 'grades')));
$mform->disabledIf('grademin', 'gradetype', 'noteq', GRADE_TYPE_VALUE);
$mform->setDefault('grademin', 0.0);
$mform->addElement('text', 'gradepass', get_string('gradepass', 'grades'));
- $mform->setHelpButton('gradepass', array(false, get_string('gradepass', 'grades'), false, true, false, 'gradepasshelp'));
+ $mform->setHelpButton('gradepass', array(false, get_string('gradepass', 'grades'),
+ false, true, false, get_string('gradepasshelp', 'grades')));
$mform->disabledIf('gradepass', 'gradetype', 'eq', GRADE_TYPE_NONE);
$mform->disabledIf('gradepass', 'gradetype', 'eq', GRADE_TYPE_TEXT);
$mform->setDefault('gradepass', 0.0);
$mform->addElement('text', 'multfactor', get_string('multfactor', 'grades'));
- $mform->setHelpButton('multfactor', array(false, get_string('multfactor', 'grades'), false, true, false, 'multfactorhelp'));
+ $mform->setHelpButton('multfactor', array(false, get_string('multfactor', 'grades'),
+ false, true, false, get_string('multfactorhelp', 'grades')));
$mform->disabledIf('multfactor', 'gradetype', 'eq', GRADE_TYPE_NONE);
$mform->disabledIf('multfactor', 'gradetype', 'eq', GRADE_TYPE_TEXT);
$mform->setDefault('multfactor', 1.0);
$mform->addElement('text', 'plusfactor', get_string('plusfactor', 'grades'));
- $mform->setHelpButton('plusfactor', array(false, get_string('plusfactor', 'grades'), false, true, false, 'plusfactorhelp'));
+ $mform->setHelpButton('plusfactor', array(false, get_string('plusfactor', 'grades'),
+ false, true, false, get_string('plusfactorhelp', 'grades')));
$mform->disabledIf('plusfactor', 'gradetype', 'eq', GRADE_TYPE_NONE);
$mform->disabledIf('plusfactor', 'gradetype', 'eq', GRADE_TYPE_TEXT);
$mform->setDefault('plusfactor', 0.0);
$mform->addElement('text', 'aggregationcoef', get_string('aggregationcoef', 'grades'));
- $mform->setHelpButton('aggregationcoef', array(false, get_string('aggregationcoef', 'grades'), false, true, false, 'aggregationcoefhelp'));
+ $mform->setHelpButton('aggregationcoef', array(false, get_string('aggregationcoef', 'grades'),
+ false, true, false, get_string('aggregationcoefhelp', 'grades')));
$mform->setDefault('aggregationcoef', 0.0);
/// hiding
/// advcheckbox is not compatible with disabledIf !!
$mform->addElement('checkbox', 'hidden', get_string('hidden', 'grades'));
+ $mform->setHelpButton('hidden', array('hidden', get_string('hidden', 'grades'), 'grade'));
$mform->addElement('date_time_selector', 'hiddenuntil', get_string('hiddenuntil', 'grades'), array('optional'=>true));
+ $mform->setHelpButton('hiddenuntil', array('hiddenuntil', get_string('hiddenuntil', 'grades'), 'grade'));
$mform->disabledIf('hiddenuntil', 'hidden', 'checked');
/// locking
$mform->addElement('advcheckbox', 'locked', get_string('locked', 'grades'));
- $mform->setHelpButton('locked', array(false, get_string('locked', 'grades'), false, true, false, 'lockedhelp'));
+ $mform->setHelpButton('locked', array('locked', get_string('locked', 'grades'), 'grade'));
$mform->addElement('date_time_selector', 'locktime', get_string('locktime', 'grades'), array('optional'=>true));
- $mform->setHelpButton('locktime', array(false, get_string('locktime', 'grades'), false, true, false, 'locktimehelp'));
+ $mform->setHelpButton('locktime', array('locktime', get_string('locktime', 'grades'), 'grade'));
$mform->disabledIf('locktime', 'gradetype', 'eq', GRADE_TYPE_NONE);
// user preferences
$string['aggregateweightedmeanall'] = 'Weighted mean of all grades';
$string['aggregateweightedmeangraded'] = 'Weighted mean of non-empty grades';
$string['aggregation'] = 'Aggregation';
+$string['aggregationcoef'] = 'Aggregation coefficient';
+$string['aggregationcoefhelp'] = 'Weight applied to all grades in this grade item during aggregation with other grade items.';
+$string['aggregation'] = 'Aggregation';
$string['aggregationposition'] = 'Aggregation position';
$string['aggregationview'] = 'Aggregation view';
$string['allgrades'] = 'All grades by category';
$string['gradeletterhelp'] = 'Grade Letter Help';
$string['gradeletternote'] = 'To delete a grade letter just empty any of the<br /> three text areas for that letter and click submit.';
$string['grademax'] = 'Maximum grade';
+$string['grademaxhelp'] = 'The maximum allowable grade for this grade item.';
$string['grademin'] = 'Minimum grade';
+$string['grademinhelp'] = 'The minimum allowable grade for this grade item.';
$string['gradeoutcomeitem'] = 'Grade outcome item';
$string['gradepass'] = 'Grade to pass';
+$string['gradepasshelp'] = 'What grade is needed to pass?';
$string['graderreport'] = 'Grader report';
$string['gradessettings'] = 'Grade settings';
-$string['groupavg'] = 'Group average';
-$string['hidden'] = 'Hidden';
-$string['importplugins'] = 'Import plugins';
-$string['itemsedit'] = 'Edit grade item';
$string['gradepreferences'] = 'Grade Preferences';
$string['gradepreferenceshelp'] = 'Grade Preferences Help';
$string['grades'] = 'Grades';
$string['gradetype'] = 'Grade type';
+$string['gradetypehelp'] = 'The type of grade this item uses. Can be of 4 types: none, value, scale and text. Only The value and scale types can be aggregated.';
$string['gradeview'] = 'View Grade';
$string['gradeweighthelp'] = 'Grade Weight Help';
+$string['groupavg'] = 'Group average';
+$string['hidden'] = 'Hidden';
$string['hiddenuntil'] = 'Hidden until';
$string['hideadvanced'] = 'Hide Advanced Features';
$string['hidecalculations'] = 'Hide calculations';
$string['highgradeascending'] = 'Sort by high grade ascending';
$string['highgradedescending'] = 'Sort by high grade descending';
$string['highgradeletter'] = 'High';
+$string['idnumberhelp'] = 'Arbitrary idnumber provided by the module responsible (must be defined and unique).';
$string['identifier'] = 'Identify user by';
$string['import'] = 'Import';
$string['importcsv'] = 'Import CSV';
$string['importfailed'] = 'Import failed';
$string['importfile'] = 'Import file';
+$string['importplugins'] = 'Import plugins';
$string['importpreview'] = 'Import preview';
$string['importsuccess'] = 'Grade import success';
$string['importxml'] = 'Import XML';
$string['inherit'] = 'Inherit';
$string['item'] = 'Item';
$string['iteminfo'] = 'Item info';
+$string['iteminfohelp'] = 'Info and notes about this item.';
$string['itemname'] = 'Item name';
+$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['left'] = 'Left';
$string['lettergrade'] = 'Letter Grade';
$string['mode'] = 'Mode';
$string['movingelement'] = 'Moving $a';
$string['multfactor'] = 'Multiplicator';
+$string['multfactorhelp'] = 'Factor by which all grades for this grade item will be multiplied.';
$string['newcategory'] = 'New category';
$string['no'] = 'No';
$string['nocategories'] = 'Grade categories could not be added or found for this course';
$string['percentdescending'] = 'Sort by percent descending';
$string['percentshort'] = '%%';
$string['plusfactor'] = 'Offset';
+$string['plusfactorhelp'] = 'Number that will be added to every grade for this grade item, after the Multiplicator is applied.';
$string['points'] = 'points';
$string['pointsascending'] = 'Sort by points ascending';
$string['pointsdescending'] = 'Sort by points descdending';
$string['savechanges'] = 'Save Changes';
$string['savepreferences'] = 'Save Preferences';
$string['scaledpct'] = 'Scaled %%';
+$string['scaleidhelp'] = 'The scale upon which this grade item is based.';
$string['selectdestination'] = 'Select destination of $a';
$string['septab'] = 'Tab';
$string['sepcomma'] = 'Comma';