From: moodler Date: Wed, 5 Sep 2007 09:17:19 +0000 (+0000) Subject: Removed hardcoded string 'course grades category' X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d61d8c09cee87c55ce10e3361ea1c8a6cf6f1ea4;p=moodle.git Removed hardcoded string 'course grades category' --- diff --git a/lang/en_utf8/grades.php b/lang/en_utf8/grades.php index ed5c3b0f9c..8f5e8e6240 100644 --- a/lang/en_utf8/grades.php +++ b/lang/en_utf8/grades.php @@ -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'; diff --git a/lib/db/upgradelib.php b/lib/db/upgradelib.php index 5e9542c1ce..8d0525dd21 100644 --- a/lib/db/upgradelib.php +++ b/lib/db/upgradelib.php @@ -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(); diff --git a/lib/grade/grade_category.php b/lib/grade/grade_category.php index a0b315dc10..3573295aa7 100644 --- a/lib/grade/grade_category.php +++ b/lib/grade/grade_category.php @@ -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;