-
Bug
-
Resolution: Fixed
-
Major
-
2.4.6, 2.5.2
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
MDL-38317-master -
In the gradebook, the item mapping section when importing grades is not translated. The following labels are hardcoded in the grade_import_mapping_form:
- comments for
- others
- ignore
- newgradeitem
- comments
The related code, in /grade/import/grade_import_form.php:
$comments = array();
|
if ($gradeitems = $this->_customdata['gradeitems']) {
|
foreach ($gradeitems as $itemid => $itemname) {
|
$comments['feedback_'.$itemid] = 'comments for '.$itemname;
|
}
|
}
|
|
if ($header) {
|
$i = 0; // index
|
foreach ($header as $h) {
|
$h = trim($h);
|
// this is what each header maps to
|
$mform->addElement('selectgroups', 'mapping_'.$i, s($h),
|
array('others'=>array('0'=>'ignore', 'new'=>'new gradeitem'),
|
'gradeitems'=>$gradeitems,
|
'comments'=>$comments));
|
$i++;
|
}
|
}
|
- blocks
-
MDL-40529 Grades import: auto-mapping of grade items and user identifier field
-
- Open
-