// module items and items without grade can not have calculation
if (($grade_item->is_external_item() and !$grade_item->is_outcome_item())
or ($grade_item->gradetype != GRADE_TYPE_VALUE and $grade_item->gradetype != GRADE_TYPE_SCALE)) {
- redirect($returnurl, get_string('errornocalculationallowed', 'grades')); //TODO: localize
+ redirect($returnurl, get_string('errornocalculationallowed', 'grades'));
}
$mform = new edit_calculation_form(null, array('gpr'=>$gpr, 'itemid' => $grade_item->id));
}
}
$mform->addElement('select', 'scaleid', get_string('scale'), $options);
- $mform->setHelpButton('scaleid', array(false, get_string('scale', 'grades'),
+ $mform->setHelpButton('scaleid', array(false, get_string('scale'),
false, true, false, get_string('scaleidhelp', 'grades', get_string('gradeitem', 'grades'))));
$mform->disabledIf('scaleid', 'gradetype', 'noteq', GRADE_TYPE_SCALE);
$export_tracking = $this->track_exports();
- $strgrades = get_string('grades', 'grades');
+ $strgrades = get_string('grades');
/// Calculate file name
$downloadfilename = clean_filename("{$this->course->shortname} $strgrades.ods");
$export_tracking = $this->track_exports();
- $strgrades = get_string('grades', 'grade');
+ $strgrades = get_string('grades');
switch ($this->separator) {
case 'comma':
$export_tracking = $this->track_exports();
- $strgrades = get_string('grades', 'grade');
+ $strgrades = get_string('grades');
/// Calculate file name
$downloadfilename = clean_filename("{$this->course->shortname} $strgrades.xls");
$export_tracking = $this->track_exports();
- $strgrades = get_string('grades', 'grade');
+ $strgrades = get_string('grades');
/// Calculate file name
$downloadfilename = clean_filename("{$this->course->shortname} $strgrades.xml");
// individual grade locked
$status = false;
import_cleanup($importcode);
- notify(get_string('gradegradeslocked', 'grades'));
+ notify(get_string('gradelocked', 'grades'));
break 2;
}
}
if ($grade_grade->is_locked()) {
// individual grade locked, abort
$status = false;
- $error = get_string('gradegradeslocked', 'grades');
+ $error = get_string('gradelocked', 'grades');
break;
}
}
$string['errorgradevaluenonnumeric'] = 'Received non-numeric for low or high grade for';
$string['errorcalculationnoequal'] = 'Formula must start with equal sign (=1+2)';
$string['errorcalculationunknown'] = 'Invalid formula';
+$string['errornocalculationallowed'] = 'Calculations are not allowed for this item';
$string['errornocategorizedid'] = 'Could not get an uncategorized id!';
$string['errornocourse'] = 'Could not get course information';
$string['errorreprintheadersnonnumeric'] = 'Received non-numeric value for reprint-headers';
$string['gradeletters'] = 'Grade letters';
$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['gradelocked'] = 'Grade is locked';
$string['gradelong'] = '$a->grade / $a->max';
$string['grademax'] = 'Maximum grade';
$string['grademaxhelp'] = 'The maximum allowable grade for this grade item.';
$string['importsuccess'] = 'Grade import success';
$string['importxml'] = 'Import XML';
$string['incorrectcourseid'] = 'Course ID was incorrect';
+$string['incorrectminmax'] = 'The minimum must be lower than the maximum';
$string['inherit'] = 'Inherit';
$string['item'] = 'Item';
$string['iteminfo'] = 'Item info';
$string['deletednot'] = 'Could not delete $a !';
$string['deletelogs'] = 'Delete logs';
$string['deleteselected'] = 'Delete selected';
+$string['deleteselectedkey'] = 'Delete selected key';
$string['deletingcourse'] = 'Deleting $a';
$string['deletingexistingcoursedata'] = 'Deleting existing course data';
$string['deletingolddata'] = 'Deleting old data';