From 4afe9581abe69c97f0b2673373819d4351a47a2f Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Thu, 12 Aug 2010 01:32:56 +0000 Subject: [PATCH] gradebook MDL-22931 display more meaningful strings when configuring grade category --- grade/edit/tree/category_form.php | 7 +++++-- lang/en_utf8/grades.php | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/grade/edit/tree/category_form.php b/grade/edit/tree/category_form.php index 69238e30717..a2a46fcdc48 100644 --- a/grade/edit/tree/category_form.php +++ b/grade/edit/tree/category_form.php @@ -101,9 +101,12 @@ class edit_category_form extends moodleform { $mform->disabledIf('droplow', 'keephigh', 'noteq', 0); // Grade item settings - $mform->addElement('header', 'general', get_string('gradeitem', 'grades')); + //Displayed as Category total to avoid confusion between grade items requiring marking and category totals + $mform->addElement('header', 'general', get_string('categorytotal', 'grades')); + + $mform->addElement('text', 'grade_item_itemname', get_string('categorytotalname', 'grades')); + $mform->setAdvanced('grade_item_itemname'); - $mform->addElement('text', 'grade_item_itemname', get_string('itemname', 'grades')); $mform->addElement('text', 'grade_item_iteminfo', get_string('iteminfo', 'grades')); $mform->setHelpButton('grade_item_iteminfo', array('iteminfo', get_string('iteminfo', 'grades'), 'grade'), true); diff --git a/lang/en_utf8/grades.php b/lang/en_utf8/grades.php index 9f7b9085928..e65f5b6dee3 100644 --- a/lang/en_utf8/grades.php +++ b/lang/en_utf8/grades.php @@ -71,6 +71,7 @@ $string['category'] = 'Category'; $string['categoryedit'] = 'Edit category'; $string['categoryname'] = 'Category name'; $string['categorytotal'] = 'Category total'; +$string['categorytotalname'] = 'Category total name'; $string['categorytotalfull'] = '$a->category total'; $string['changereportdefaults'] = 'Change report defaults'; $string['changedefaults'] = 'Change defaults';