MDL-21695 Help strings for the activity module common settings

AMOS BEGIN
 HLP cmidnumber.html,[idnumbermod_help,core]
 HLP completion/completionexpected.html,[completionexpected_help,core_completion]
 HLP completion/completionlocked.html,[completionlocked_help,core_completion]
 HLP condition/completioncondition.html,[completioncondition_help,core_condition]
 HLP condition/conditiondates.html,[availablefrom_help,core_condition]
 HLP condition/conditiondates.html,[availableuntil_help,core_condition]
 HLP condition/showavailability.html,[showavailability_help,core_condition]
 HLP grouping.html,[grouping_help,core_group]
 HLP groupmembersonly.html,[groupmembersonly_help,core_group]
 HLP groupmode.html,[groupmode_help,core_group]
AMOS END
This commit is contained in:
David Mudrak 2010-05-03 20:43:55 +00:00
parent 8496fdac52
commit ddd9f9266b
9 changed files with 40 additions and 62 deletions

View File

@ -212,7 +212,7 @@ abstract class moodleform_mod extends moodleform {
get_string('completedwarning', 'completion'),
get_string('completedwarningtext', 'completion', $completedcount)),
'unlockcompletion');
$mform->setHelpButton('completedwarning', array('completionlocked', get_string('completionlocked_help', 'completion'), 'completion'));
$mform->addHelpButton('completedwarning', 'completionlocked', 'completion');
$freeze = true;
}
@ -374,8 +374,8 @@ abstract class moodleform_mod extends moodleform {
$options = array(NOGROUPS => get_string('groupsnone'),
SEPARATEGROUPS => get_string('groupsseparate'),
VISIBLEGROUPS => get_string('groupsvisible'));
$mform->addElement('select', 'groupmode', get_string('groupmode'), $options, NOGROUPS);
$mform->setHelpButton('groupmode', array('groupmode', get_string('groupmode')));
$mform->addElement('select', 'groupmode', get_string('groupmode', 'group'), $options, NOGROUPS);
$mform->addHelpButton('groupmode', 'groupmode', 'group');
}
if ($this->_features->groupings or $this->_features->groupmembersonly) {
@ -388,13 +388,13 @@ abstract class moodleform_mod extends moodleform {
}
}
$mform->addElement('select', 'groupingid', get_string('grouping', 'group'), $options);
$mform->setHelpButton('groupingid', array('grouping', get_string('grouping', 'group')));
$mform->addHelpButton('groupingid', 'grouping', 'group');
$mform->setAdvanced('groupingid');
}
if ($this->_features->groupmembersonly) {
$mform->addElement('checkbox', 'groupmembersonly', get_string('groupmembersonly', 'group'));
$mform->setHelpButton('groupmembersonly', array('groupmembersonly', get_string('groupmembersonly', 'group')));
$mform->addHelpButton('groupmembersonly', 'groupmembersonly', 'group');
$mform->setAdvanced('groupmembersonly');
}
@ -402,16 +402,16 @@ abstract class moodleform_mod extends moodleform {
if ($this->_features->idnumber) {
$mform->addElement('text', 'cmidnumber', get_string('idnumbermod'));
$mform->setHelpButton('cmidnumber', array('cmidnumber', get_string('idnumbermod')), true);
$mform->addHelpButton('cmidnumber', 'idnumbermod');
}
if (!empty($CFG->enableavailability)) {
// Conditional availability
$mform->addElement('header', '', get_string('availabilityconditions', 'condition'));
$mform->addElement('date_selector', 'availablefrom', get_string('availablefrom', 'condition'), array('optional'=>true));
$mform->setHelpButton('availablefrom', array('conditiondates', get_string('conditiondates_help', 'condition'), 'condition'));
$mform->addHelpButton('availablefrom', 'availablefrom', 'condition');
$mform->addElement('date_selector', 'availableuntil', get_string('availableuntil', 'condition'), array('optional'=>true));
$mform->setHelpButton('availableuntil', array('conditiondates', get_string('conditiondates_help', 'condition'), 'condition'));
$mform->addHelpButton('availableuntil', 'availableuntil', 'condition');
// Conditions based on grades
$gradeoptions = array();
@ -487,7 +487,7 @@ abstract class moodleform_mod extends moodleform {
$this->repeat_elements(array($group),$count,array(),
'conditioncompletionrepeats','conditioncompletionadds',2,
get_string('addcompletions','condition'),true);
$mform->setHelpButton('conditioncompletiongroup[0]', array('completioncondition', get_string('completioncondition_help', 'condition'), 'condition'));
$mform->addHelpButton('conditioncompletiongroup[0]', 'completioncondition', 'condition');
}
// Do we display availability info to students?
@ -495,7 +495,6 @@ abstract class moodleform_mod extends moodleform {
array(CONDITION_STUDENTVIEW_SHOW=>get_string('showavailability_show', 'condition'),
CONDITION_STUDENTVIEW_HIDE=>get_string('showavailability_hide', 'condition')));
$mform->setDefault('showavailability', CONDITION_STUDENTVIEW_SHOW);
$mform->setHelpButton('showavailability', array('showavailability', get_string('showavailability_help', 'condition'), 'condition'));
}
// Conditional activities: completion tracking section
@ -515,7 +514,6 @@ abstract class moodleform_mod extends moodleform {
$mform->addElement('select', 'completion', get_string('completion', 'completion'),
array(COMPLETION_TRACKING_NONE=>get_string('completion_none', 'completion'),
COMPLETION_TRACKING_MANUAL=>get_string('completion_manual', 'completion')));
$mform->setHelpButton('completion', array('completion', get_string('completion_help', 'completion'), 'completion'));
$mform->setDefault('completion', $this->_features->defaultcompletion
? COMPLETION_TRACKING_MANUAL
: COMPLETION_TRACKING_NONE);
@ -524,8 +522,7 @@ abstract class moodleform_mod extends moodleform {
$gotcompletionoptions = false;
if (plugin_supports('mod', $this->_modname, FEATURE_COMPLETION_TRACKS_VIEWS, false)) {
$mform->addElement('checkbox', 'completionview', get_string('completionview', 'completion'),
get_string('completionview_text', 'completion'));
$mform->setHelpButton('completionview', array('completionview', get_string('completionview_help', 'completion'), 'completion'));
get_string('completionview_desc', 'completion'));
$mform->disabledIf('completionview', 'completion', 'ne', COMPLETION_TRACKING_AUTOMATIC);
$gotcompletionoptions = true;
}
@ -533,8 +530,7 @@ abstract class moodleform_mod extends moodleform {
// Automatic completion once it's graded
if (plugin_supports('mod', $this->_modname, FEATURE_GRADE_HAS_GRADE, false)) {
$mform->addElement('checkbox', 'completionusegrade', get_string('completionusegrade', 'completion'),
get_string('completionusegrade_text', 'completion'));
$mform->setHelpButton('completionusegrade', array('completionusegrade', get_string('completionusegrade_help', 'completion'), 'completion'));
get_string('completionusegrade_desc', 'completion'));
$mform->disabledIf('completionusegrade', 'completion', 'ne', COMPLETION_TRACKING_AUTOMATIC);
$gotcompletionoptions = true;
}
@ -557,7 +553,7 @@ abstract class moodleform_mod extends moodleform {
// Completion expected at particular date? (For progress tracking)
$mform->addElement('date_selector', 'completionexpected', get_string('completionexpected', 'completion'), array('optional'=>true));
$mform->setHelpButton('completionexpected', array('completionexpected', get_string('completionexpected_help', 'completion'), 'completion'));
$mform->addHelpButton('completionexpected', 'completionexpected', 'completion');
$mform->disabledIf('completionexpected', 'completion', 'eq', COMPLETION_TRACKING_NONE);
}

View File

@ -41,6 +41,7 @@ $string['completion-alt-manual-y'] = 'Completed; select to mark as not complete'
$string['completion_automatic'] = 'Show activity as complete when conditions are met';
$string['completiondisabled'] = 'Disabled, not shown in activity settings';
$string['completionexpected'] = 'Expect completed on';
$string['completionexpected_help']='This is the date that completion of this activity is expected. The value is used when displaying student progress.';
$string['completionicons'] = 'progress tick boxes';
$string['completion_manual'] = 'Users can manually mark the activity as completed';
$string['completion_none'] = 'Do not indicate activity completion';
@ -48,10 +49,9 @@ $string['completionreport'] = 'Completion progress report';
$string['completion-title-manual-n'] = 'Mark as complete';
$string['completion-title-manual-y'] = 'Mark as not complete';
$string['completionusegrade'] = 'Require grade';
$string['completionusegrade_help'] = 'User must receive a grade to complete this activity';
$string['completionusegrade_text'] = 'User must receive a grade';
$string['completionusegrade_desc'] = 'User must receive a grade to complete this activity';
$string['completionview'] = 'Require view';
$string['completionview_text'] = 'User must view activity';
$string['completionview_desc'] = 'Users must view this activity to complete it';
$string['configenablecompletion'] = 'When enabled, this lets you turn on completion tracking (progress) features at course level.';
$string['configprogresstrackedroles'] = 'Roles that are displayed in the progress-tracking screen. (Usually includes just students and equivalent roles.)';
$string['csvdownload'] = 'Download in spreadsheet format (UTF-8 .csv)';
@ -60,9 +60,7 @@ $string['err_noactivities'] = 'Completion information is not enabled for any act
$string['err_nousers'] = 'There are no users on this course or group for whom completion information is displayed. (By default, completion information is displayed only for students, so if there are no students, you will see this error. Administrators can alter this option via the admin screens.)';
$string['err_system'] = 'An internal error occurred in the completion system. (System administrators can enable debugging information to see more detail.)';
$string['excelcsvdownload'] = 'Download in Excel-compatible format (.csv)';
$string['completion_help'] = 'Completion tracking';
$string['completionlocked_help'] = 'Completion options are locked because some users have already completed this activity.';
$string['completionview_help'] = 'Users must view this activity to complete it';
$string['progress'] = 'Student progress';
$string['progress-title'] = '{$a->user}, {$a->activity}: {$a->state} {$a->date}';
$string['reportpage'] = 'Showing users {$a->from} to {$a->to} of {$a->total}.';
@ -110,7 +108,6 @@ $string['datepassed']='Date passed';
$string['daysafterenrolment']='Days after enrolment';
$string['durationafterenrolment']='Duration after enrolment';
$string['fraction']='Fraction';
$string['completionexpected_help']='This is the date that completion of this activity is expected';
$string['inprogress']='In progress';
$string['manualcompletionby']='Manual completion by';
$string['manualselfcompletion']='Manual self completion';

View File

@ -27,7 +27,9 @@ $string['addcompletions'] = 'Add {no} activity conditions to form';
$string['addgrades'] = 'Add {no} grade conditions to form';
$string['availabilityconditions'] = 'Restrict availability';
$string['availablefrom'] = 'Only available from';
$string['availablefrom_help'] = 'The activity is only shown to students from this date. If you choose to show information about an activity that is unavailable, then before this date, students will see the activity greyed-out, with informational text about the date that it appears.';
$string['availableuntil'] = 'Only available until end';
$string['availableuntil_help'] = 'The activity disappears after this date. The activity completely vanishes at midnight on the given date, even if you\'ve chosen to show the restriction information.';
$string['badavailabledates'] = 'Invalid dates. If you set both dates, the \'available from\' date should be before the \'until\' date.';
$string['completion_complete'] = 'must be marked complete';
$string['completioncondition'] = 'Activity completion condition';
@ -35,7 +37,6 @@ $string['completioncondition_help'] = 'Not available until the user has complete
$string['completion_fail'] = 'must be complete with fail grade';
$string['completion_incomplete'] = 'must not be marked complete';
$string['completion_pass'] = 'must be complete with pass grade';
$string['conditiondates_help'] = 'available dates';
$string['configenableavailability'] = 'When enabled, this lets you set conditions (based on date, grade, or completion) that control whether an activity is available.';
$string['enableavailability'] = 'Enable conditional availability';
$string['grade_atleast'] = 'must be at least';
@ -74,7 +75,12 @@ $string['requires_grade_max'] = 'Not available unless you get an appropriate sco
$string['requires_grade_min'] = 'Not available until you achieve a required score in <strong>{$a}</strong>.';
$string['requires_grade_range'] = 'Not available unless you get a particular score in <strong>{$a}</strong>.';
$string['showavailability'] = 'Before activity is available';
$string['showavailability_help'] = 'display of unavailable activities';
$string['showavailability_help'] = 'When an activity is unavailable due to the restrictions in this box, there are two possibilities:
* The activity displays to users, but as greyed-out text instead of a link. Informational text below the activity indicates when, or under what conditions, it will become available.
* The activity does not display to users at all.
In both cases, once the activity becomes available, it displays as normal. Users with the capability to view hidden activities can still see unavailable activities, regardless of this setting. The informational text always appears to them. This option does not affect the standard visibility option. You can still use the eye icon to quickly and completely hide any activity from course participants.';
$string['showavailability_hide'] = 'Hide activity entirely';
$string['showavailability_show'] = 'Show activity greyed-out, with restriction information';
$string['userrestriction_hidden'] = 'Restricted (completely hidden, no message): &lsquo;{$a}&rsquo;';

View File

@ -73,6 +73,7 @@ $string['groupinfo'] = 'Info about selected group';
$string['groupinfomembers'] = 'Info about selected members';
$string['groupinfopeople'] = 'Info about selected people';
$string['grouping'] = 'Grouping';
$string['grouping_help'] = 'A grouping is a collection of groups within a course. If a grouping is selected, then users assigned to groups within the grouping will be able to work together. Group mode must be set to separate or visible groups.';
$string['groupingdescription'] = 'Grouping description';
$string['groupingname'] = 'Grouping name';
$string['groupingnameexists'] = 'The grouping name \'{$a}\' already exists in this course, please choose another one.';
@ -82,10 +83,23 @@ $string['groupmember'] = 'Group Member';
$string['groupmemberdesc'] = 'Standard role for a member of a group.';
$string['groupmembers'] = 'Group members';
$string['groupmembersonly'] = 'Available for group members only';
$string['groupmembersonly_help'] = 'If the checkbox is checked, then the activity or resource will only be available to users assigned to groups within the selected grouping, or to any group if no grouping is selected.';
$string['groupmembersonlyerror'] = 'Sorry, you must be member of at least one group that is used in this activity.';
$string['groupmemberssee'] = 'See group members';
$string['groupmembersselected'] = 'Members of selected group';
$string['groupmode'] = 'Group mode';
$string['groupmode_help'] = 'The group mode can be one of three levels:
* No groups - there are no sub groups, everyone is part of one big community
* Separate groups - each group can only see their own group, others are invisible
* Visible groups - each group works in their own group, but can also see other groups
The group mode can be defined at two levels:
1. Course level - the group mode defined at the course level is the default mode for all activities defined within that course
2. Activity level - each activity that supports groups can also define its own grouping mode
If the course is set to "force group mode", the setting at the activity level is ignored.';
$string['groupmodeforce'] = 'Force group mode';
$string['groupmy'] = 'My group';
$string['groupname'] = 'Group name';

View File

@ -1,5 +0,0 @@
<h1>ID number</h1>
<p>Setting an ID number provides a way of identifying the activity for grade calculation purposes.
If the activity is not included in any grade calculation then the ID number field can be left blank.</p>
<p> The ID number can also be set on the edit grade calculation page in the gradebook, though it can
only be edited on the update activity page.</p>

View File

@ -1,7 +0,0 @@
<h1>Grouping</h1>
<p>A grouping is a collection of groups within a course.</p>
<p>If a grouping is selected, then users assigned to groups within the grouping will be able to work together.</p>
<p>Group mode must be set to separate or visible groups.</p>

View File

@ -1,6 +0,0 @@
<h1>Available for group members only</h1>
<p>If the "Available for group members only" checkbox is checked,
then the activity (or resource) will only be available to users
assigned to groups within the selected grouping, or to any group
if no grouping is selected.</p>

View File

@ -1,20 +0,0 @@
<h1>Group Mode</h1>
<p>The group mode can be one of three levels:</p>
<ul>
<li>No groups - there are no sub groups, everyone is part of one big community</li>
<li>Separate groups - each group can only see their own group, others are invisible</li>
<li>Visible groups - each group works in their own group, but can also see other groups</li>
</ul>
<p>The group mode can be defined at two levels:</p>
<dl>
<dt><b>1. Course level</b></dt>
<dd><p>The group mode defined at the course level is the default mode
for all activities defined within that course</p></dd>
<dt><b>2. Activity level</b></dt>
<dd><p>Each activity that supports groups can also define its own
grouping mode. If the course is set to "<a href="help.php?module=moodle&amp;file=groupmodeforce.html">force group mode</a>" then
the setting for each activity is ignored.</p></dd>
</dl>

View File

@ -903,6 +903,9 @@ $string['idnumber'] = 'ID number';
$string['idnumbercourse'] = 'Course ID number';
$string['idnumbercourse_help'] = 'The ID number of a course is only used when matching the course against external systems and is not displayed anywhere on the site. If the course has an official code name it may be entered, otherwise the field can be left blank.';
$string['idnumbermod'] = 'ID number';
$string['idnumbermod_help'] = 'Setting an ID number provides a way of identifying the activity for grade calculation purposes. If the activity is not included in any grade calculation then the ID number field can be left blank.
The ID number can also be set on the edit grade calculation page in the gradebook, though it can only be edited on the update activity page.';
$string['idnumbertaken'] = 'This ID number is already taken';
$string['imagealt'] = 'Picture description';
$string['import'] = 'Import';