MDL-12294 Fixed a bunch of missing or wrong strings
This commit is contained in:
@@ -52,7 +52,7 @@ if (!$grade_item = grade_item::fetch(array('id'=>$id, 'courseid'=>$course->id)))
|
||||
// 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));
|
||||
|
||||
@@ -66,7 +66,7 @@ class edit_item_form extends moodleform {
|
||||
}
|
||||
}
|
||||
$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);
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ class grade_export_ods extends grade_export {
|
||||
|
||||
$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");
|
||||
|
||||
@@ -53,7 +53,7 @@ class grade_export_txt extends grade_export {
|
||||
|
||||
$export_tracking = $this->track_exports();
|
||||
|
||||
$strgrades = get_string('grades', 'grade');
|
||||
$strgrades = get_string('grades');
|
||||
|
||||
switch ($this->separator) {
|
||||
case 'comma':
|
||||
|
||||
@@ -38,7 +38,7 @@ class grade_export_xls extends grade_export {
|
||||
|
||||
$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");
|
||||
|
||||
@@ -42,7 +42,7 @@ class grade_export_xml extends grade_export {
|
||||
|
||||
$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");
|
||||
|
||||
@@ -405,7 +405,7 @@ if ($formdata = $mform->get_data()) {
|
||||
// individual grade locked
|
||||
$status = false;
|
||||
import_cleanup($importcode);
|
||||
notify(get_string('gradegradeslocked', 'grades'));
|
||||
notify(get_string('gradelocked', 'grades'));
|
||||
break 2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ function import_xml_grades($text, $course, &$error) {
|
||||
if ($grade_grade->is_locked()) {
|
||||
// individual grade locked, abort
|
||||
$status = false;
|
||||
$error = get_string('gradegradeslocked', 'grades');
|
||||
$error = get_string('gradelocked', 'grades');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -151,6 +151,7 @@ $string['encoding'] = 'Encoding';
|
||||
$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';
|
||||
@@ -213,6 +214,7 @@ $string['gradeletter'] = 'Grade letter';
|
||||
$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.';
|
||||
@@ -276,6 +278,7 @@ $string['importskippedoutcome'] = 'An outcome with shortname \"$a\" already exis
|
||||
$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';
|
||||
|
||||
@@ -377,6 +377,7 @@ $string['deletedcourse'] = '$a has been completely deleted';
|
||||
$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';
|
||||
|
||||
Reference in New Issue
Block a user