From 1155b8dbfee6faaad054ab1723e1a3bccbf275ed Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Mon, 24 May 2010 15:35:03 +0000 Subject: [PATCH] MDL-21695 Replaced grade/decimalpoints.html AMOS BEGIN HLP grade/decimalpoints.html,[decimalpoints_help,core_grades] AMOS END --- grade/edit/settings/form.php | 2 +- grade/edit/tree/category_form.php | 2 +- grade/edit/tree/item_form.php | 2 +- lang/en/grades.php | 1 - lang/en/help/grade/decimalpoints.html | 2 -- 5 files changed, 3 insertions(+), 6 deletions(-) delete mode 100644 lang/en/help/grade/decimalpoints.html diff --git a/grade/edit/settings/form.php b/grade/edit/settings/form.php index 9d5a48d12a4..27204520f9d 100644 --- a/grade/edit/settings/form.php +++ b/grade/edit/settings/form.php @@ -90,7 +90,7 @@ class course_settings_form extends moodleform { $options = array(-1=> get_string('defaultprev', 'grades', $CFG->grade_decimalpoints), 0=>0, 1=>1, 2=>2, 3=>3, 4=>4, 5=>5); $mform->addElement('select', 'decimalpoints', get_string('decimalpoints', 'grades'), $options); - $mform->setHelpButton('decimalpoints', array('decimalpoints', get_string('decimalpoints', 'grades'), 'grade')); + $mform->addHelpButton('decimalpoints', 'decimalpoints', 'grades'); // add setting options for plugins $types = array('report', 'export', 'import'); diff --git a/grade/edit/tree/category_form.php b/grade/edit/tree/category_form.php index 21cd19e02cc..7091209a62c 100644 --- a/grade/edit/tree/category_form.php +++ b/grade/edit/tree/category_form.php @@ -189,7 +189,7 @@ class edit_category_form extends moodleform { $default_gradedecimals = grade_get_setting($COURSE->id, 'decimalpoints', $CFG->grade_decimalpoints); $options = array(-1=>get_string('defaultprev', 'grades', $default_gradedecimals), 0=>0, 1=>1, 2=>2, 3=>3, 4=>4, 5=>5); $mform->addElement('select', 'grade_item_decimals', get_string('decimalpoints', 'grades'), $options); - $mform->setHelpButton('grade_item_decimals', array('decimalpoints', get_string('decimalpoints', 'grades'), 'grade'), true); + $mform->addHelpButton('grade_item_decimals', 'decimalpoints', 'grades'); $mform->setDefault('grade_item_decimals', -1); $mform->disabledIf('grade_item_decimals', 'grade_item_display', 'eq', GRADE_DISPLAY_TYPE_LETTER); diff --git a/grade/edit/tree/item_form.php b/grade/edit/tree/item_form.php index 1a8858ed0ec..f3eeafbcf1e 100644 --- a/grade/edit/tree/item_form.php +++ b/grade/edit/tree/item_form.php @@ -128,7 +128,7 @@ class edit_item_form extends moodleform { $default_gradedecimals = grade_get_setting($COURSE->id, 'decimalpoints', $CFG->grade_decimalpoints); $options = array(-1=>get_string('defaultprev', 'grades', $default_gradedecimals), 0=>0, 1=>1, 2=>2, 3=>3, 4=>4, 5=>5); $mform->addElement('select', 'decimals', get_string('decimalpoints', 'grades'), $options); - $mform->setHelpButton('decimals', array('decimalpoints', get_string('decimalpoints', 'grades'), 'grade'), true); + $mform->addHelpButton('decimals', 'decimalpoints', 'grades'); $mform->setDefault('decimals', -1); $mform->disabledIf('decimals', 'display', 'eq', GRADE_DISPLAY_TYPE_LETTER); if ($default_gradedisplaytype == GRADE_DISPLAY_TYPE_LETTER) { diff --git a/lang/en/grades.php b/lang/en/grades.php index 71f91d503c5..6bf76b08634 100755 --- a/lang/en/grades.php +++ b/lang/en/grades.php @@ -117,7 +117,6 @@ $string['categorytotalfull'] = '{$a->category} total'; $string['combo'] = 'Tabs and Dropdown menu'; $string['compact'] = 'Compact'; $string['configcoursegradedisplaytype'] = 'Select the default display type of grades for this course. You can also select the site default value. Grades can be shown as real grades, as percentages (in reference to the minimum and maximum grades) or as letters (A, B, C etc..). Selecting Letters will allow you to define your own grade letters and boundaries.'; -$string['configdecimalpoints'] = 'Specifies the number of decimal points to display for each grade. This setting may be overridden per grading item.'; $string['configdisablegradehistory'] = 'Disable history tracking of changes in grades related tables. This may speed up the server a little and conserve space in database.'; $string['configenableoutcomes'] = 'Support for Outcomes (also known as Competencies, Goals, Standards or Criteria) means that we can grade things using one or more scales that are tied to outcome statements. Enabling outcomes makes such special grading possible throughout the site.'; $string['configexportdecimalpoints'] = 'The number of decimal points to display for export. This can be overridden during export.'; diff --git a/lang/en/help/grade/decimalpoints.html b/lang/en/help/grade/decimalpoints.html deleted file mode 100644 index a4e89f2b835..00000000000 --- a/lang/en/help/grade/decimalpoints.html +++ /dev/null @@ -1,2 +0,0 @@ -

Overall decimal points

-

Specifies the number of decimal points to display for each grade. This setting has no effect on grade calculations, which are made with an accuracy of 5 decimal places.