MDL-21695 Missing string producing debugging message, to be shortened probably

This commit is contained in:
David Mudrak 2010-04-30 01:01:35 +00:00
parent cf5c04a38d
commit 59f19480a8
2 changed files with 20 additions and 1 deletions

View File

@ -453,7 +453,7 @@ abstract class moodleform_mod extends moodleform {
$this->repeat_elements(array($group), $count, array(), 'conditiongraderepeats', 'conditiongradeadds', 2,
get_string('addgrades', 'condition'), true);
$mform->setHelpButton('conditiongradegroup[0]', array('gradecondition', get_string('help_gradecondition', 'condition'), 'condition'));
$mform->addHelpButton('conditiongradegroup[0]', 'gradecondition', 'condition');
// Conditions based on completion
$completion = new completion_info($COURSE);

View File

@ -38,6 +38,25 @@ $string['configenableavailability'] = 'When enabled, this lets you set condition
$string['enableavailability'] = 'Enable conditional availability';
$string['grade_atleast'] = 'must be at least';
$string['gradecondition'] = 'Grade condition';
$string['gradecondition_help'] = 'You can specify a condition on any grade in the course: the full course grade, the grade for any activity, or a custom grade that you create manually.
You can enter either a minimum value (≥), a maximum value (<), both, or
neither. The activity will only appear if the student has a value for the
specified grade, and if it falls within any specified number range.
You can add more than one grade condition. All conditions must be met in order
for the activity to appear.
<ul>
<li>The range numbers can be fractional (with up to five decimal places) if
necessary. </li>
<li>Be careful with the maximum value; if the maximum is 7, a student who
scores exactly 7 will not see the activity. You could set it to 7.01 if
you really wanted to include 7.</li>
<li>If creating several different activities that appear according to grade
ranges, use the same number for the maximum of one activity, and the minimum
of the next. For example, you might create one activity with a maximum of 7
and another with a minimum of 7. The first would appear to everyone scoring
between 0 and 6.99999, and the second would appear to everyone scoring 7.00000
to 10. This guarantees that everyone with a grade will see one or other.</li>
</ul>';
$string['grade_upto'] = 'and less than';
$string['help_conditiondates'] = 'available dates';
$string['help_showavailability'] = 'display of unavailable activities';