Removed hardcoded string 'course grades category'

This commit is contained in:
moodler
2007-09-05 09:17:19 +00:00
parent 6ef84f6f48
commit d61d8c09ce
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -90,6 +90,7 @@ $string['configshowuserimage'] = 'Whether to show the user\'s profile image next
$string['configstudentsperpage'] = 'The number of students to display per page in the grader report.';
$string['configstudentsperpagedefault'] = 'The number of students to display per page in the grader report. Leave this field empty to use the site default (currently $a).';
$string['contract'] = 'Contract Category';
$string['coursegradecategory'] = 'Course grade category';
$string['coursename'] = 'Course name';
$string['coursetotal'] = 'Course total';
$string['createcategory'] = 'Create Category';
+1 -1
View File
@@ -39,7 +39,7 @@ function upgrade_18_gradebook($courseid) {
// create course category
$course_category = new object();
$course_category->courseid = $courseid;
$course_category->fullname = 'course grade category';
$course_category->fullname = get_string('coursegradecategory', 'grades');
$course_category->parent = null;
$course_category->aggregation = GRADE_AGGREGATE_MEAN_ALL;
$course_category->timemodified = $course_category->timecreated = time();
+1 -1
View File
@@ -284,7 +284,7 @@ class grade_category extends grade_object {
*/
function insert_course_category($courseid) {
$this->courseid = $courseid;
$this->fullname = 'course grade category';
$this->fullname = get_string('coursegradecategory', 'grades');
$this->path = null;
$this->parent = null;
$this->aggregate = GRADE_AGGREGATE_MEAN_ALL;