Skip to content

Commit

Permalink
MDL-21985 - modify the mod/scorm settings descriptions, reorder setti…
Browse files Browse the repository at this point in the history
…ngs, and add the _hlp text values.
  • Loading branch information
piersharding committed Apr 26, 2010
1 parent e72a035 commit 87db13b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 19 deletions.
23 changes: 18 additions & 5 deletions mod/scorm/lang/en/scorm.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
$string['attempt1'] = '1 attempt';
$string['attr_error'] = 'Bad value for attribute ({$a->attr}) in tag {$a->tag}.';
$string['autocontinue'] = 'Auto-Continue';
$string['autocontinue_hlp'] = 'activate auto continue mode for the SCORM object';
$string['autocontinuedesc'] = 'This preference sets the default auto continue for the activity';
$string['averageattempt'] = 'Average attempts';
$string['badmanifest'] = 'Some manifest errors: see errors log';
Expand All @@ -63,9 +64,11 @@
$string['directories'] = 'Show the directory links';
$string['display'] = 'Display package';
$string['displayattemptstatus'] = 'Display attempt status';
$string['displayattemptstatus_hlp'] = 'This preference allows the display of the attempt status on the entry page';
$string['displayattemptstatusdesc'] = 'This preference sets the default value for the display attempt status setting';
$string['displaycoursestructure'] = 'Display course structure';
$string['displaycoursestructuredesc'] = 'This preference sets the default value for the display course structure setting';
$string['displaycoursestructure'] = 'Display course structure on entry page';
$string['displaycoursestructure_hlp'] = 'enable the display of the course structure on the entry page';
$string['displaycoursestructuredesc'] = 'This preference sets the default value for the display course structure on entry page setting';
$string['displaydesc'] = 'This preference sets the default of whether to display the package or not for an activity';
$string['domxml'] = 'DOMXML external library';
$string['element'] = 'Element';
Expand All @@ -84,8 +87,10 @@
$string['firstaccess'] = 'First access';
$string['firstattempt'] = 'First attempt';
$string['forcecompleted'] = 'Force completed';
$string['forcecompleted_hlp'] = 'This preference enables a SCORM package to be force completed';
$string['forcecompleteddesc'] = 'This preference sets the default value for the force completed setting';
$string['forcenewattempt'] = 'Force new attempt';
$string['forcenewattempt_hlp'] = 'This preference allows a new attempt to be forced on each try';
$string['forcenewattemptdesc'] = 'This preference sets the default value for the force new attempt setting';
$string['found'] = 'Manifest found';
$string['frameheight'] = 'This preference set the default height for stage frame or window';
Expand All @@ -96,20 +101,23 @@
$string['gradeforattempt'] = 'Grade for attempt';
$string['gradehighest'] = 'Highest grade';
$string['grademethod'] = 'Grading method';
$string['grademethod_hlp'] = 'This preference sets the grade method for an activity';
$string['grademethoddesc'] = 'This preference sets the default grade method for an activity';
$string['gradereported'] = 'Grade reported';
$string['gradescoes'] = 'Learning Objects';
$string['gradesum'] = 'Sum grade';
$string['height'] = 'Height';
$string['hidden'] = 'Hidden';
$string['hidebrowse'] = 'Disable preview mode';
$string['hidebrowse_hlp'] = 'Will the student be able to view the SCORM object in preview mode?';
$string['hidebrowsedesc'] = 'This preference sets the default for whether to disable or enable the preview mode';
$string['hideexit'] = 'Hide exit link';
$string['hidenav'] = 'Hide navigation buttons';
$string['hidenavdesc'] = 'This preference sets the default for whether to show or hide the navigation buttons';
$string['hidereview'] = 'Hide review button';
$string['hidetoc'] = 'Course structure display (TOC)';
$string['hidetocdesc'] = 'This preference sets the default for whether to show or hide the course structure display (TOC)';
$string['hidetoc'] = 'Display course structure (TOC) in player';
$string['hidetoc_hlp'] = 'control whether and how to display or hide the course structure (TOC) in the SCORM player';
$string['hidetocdesc'] = 'This preference sets the default for whether to show or hide the course structure (TOC) in the SCORM player';
$string['highestattempt'] = 'Highest attempt';
$string['chooseapacket'] = 'Choose or update a package';
$string['identifier'] = 'Question Identifier';
Expand All @@ -123,10 +131,12 @@
$string['lastaccess'] = 'Last access';
$string['lastattempt'] = 'Last attempt';
$string['lastattemptlock'] = 'Lock after final attempt';
$string['lastattemptlock_hlp'] = 'Enable the SCORM package to be locked after the final attempt';
$string['lastattemptlockdesc'] = 'This preference sets the default value for the lock after final attempt setting';
$string['location'] = 'Show the location bar';
$string['max'] = 'Max score';
$string['maximumattempts'] = 'Number of attempts';
$string['maximumattempts_hlp'] = 'This preference sets the maximum number of attempts for an activity';
$string['maximumattemptsdesc'] = 'This preference sets the default maximum attempts for an activity';
$string['maximumgradedesc'] = 'This preference sets the default maximum grade for an activity';
$string['menubar'] = 'Show the menu bar';
Expand Down Expand Up @@ -207,11 +217,13 @@
$string['selectall'] = 'Select all';
$string['selectnone'] = 'Deselect all';
$string['show'] = 'Show';
$string['sided'] = 'On the left side';
$string['sided'] = 'To the side';
$string['skipview'] = 'Student skip content structure page';
$string['skipview_hlp'] = 'skip content structure and entry page';
$string['skipviewdesc'] = 'This preference sets the default for when to skip content structure for a page';
$string['slashargs'] = 'WARNING: slash arguments is disabled on this site and objects may not function as expected!';
$string['stagesize'] = 'Stage size';
$string['stagesize_hlp'] = 'set the Stage size for the player - if width is 100 or less then it is treated as a percentage';
$string['started'] = 'Started on';
$string['status'] = 'Status';
$string['statusbar'] = 'Show the status bar';
Expand Down Expand Up @@ -245,6 +257,7 @@
$string['viewallreports'] = 'View reports for {$a} attempts';
$string['viewalluserreports'] = 'View reports for {$a} users';
$string['whatgrade'] = 'Attempts grading';
$string['whatgrade_hlp'] = 'This preference sets the method of grading for attempts';
$string['whatgradedesc'] = 'This preference sets the default attempts grading';
$string['width'] = 'Width';
$string['window'] = 'Window';
Expand Down
29 changes: 15 additions & 14 deletions mod/scorm/mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ function definition() {
// Time restrictions
$mform->addElement('header', 'timerestricthdr', get_string('timerestrict', 'scorm'));
$mform->addElement('checkbox', 'timerestrict', get_string('timerestrict', 'scorm'));
$mform->setHelpButton('timerestrict', array("timerestrict", get_string("timerestrict","scorm"), "scorm"));


$mform->addElement('date_time_selector', 'timeopen', get_string("scormopen", "scorm"));
Expand Down Expand Up @@ -98,19 +97,21 @@ function definition() {

// Max Attempts
$mform->addElement('select', 'maxattempt', get_string('maximumattempts', 'scorm'), scorm_get_attempts_array());
$mform->setHelpButton('maxattempt', array('maxattempt',get_string('maximumattempts', 'scorm'), 'scorm'));
$mform->setHelpButton('maxattempt', array('maximumattempts',get_string('maximumattempts', 'scorm'), 'scorm'));
$mform->setDefault('maxattempt', $cfg_scorm->maxattempts);

// What Grade
$mform->addElement('select', 'whatgrade', get_string('whatgrade', 'scorm'), scorm_get_what_grade_array());
$mform->disabledIf('whatgrade', 'maxattempt','eq',1);
$mform->setHelpButton('whatgrade', array('whatgrade',get_string('whatgrade', 'scorm'), 'scorm'));
$mform->setDefault('whatgrade', $cfg_scorm->whatgrade);
$mform->setAdvanced('whatgrade');

// Display attempt status
$mform->addElement('selectyesno', 'displayattemptstatus', get_string('displayattemptstatus', 'scorm'));
$mform->setHelpButton('displayattemptstatus', array('displayattemptstatus',get_string('displayattemptstatus', 'scorm'), 'scorm'));
$mform->setDefault('displayattemptstatus', $cfg_scorm->displayattemptstatus);

// Display course structure
$mform->addElement('selectyesno', 'displaycoursestructure', get_string('displaycoursestructure', 'scorm'));
$mform->setHelpButton('displaycoursestructure', array('displaycoursestructure',get_string('displaycoursestructure', 'scorm'), 'scorm'));
$mform->setDefault('displaycoursestructure', $cfg_scorm->displaycoursestructure);

// Force completed
$mform->addElement('selectyesno', 'forcecompleted', get_string('forcecompleted', 'scorm'));
$mform->setHelpButton('forcecompleted', array('forcecompleted',get_string('forcecompleted', 'scorm'), 'scorm'));
Expand All @@ -129,13 +130,6 @@ function definition() {
$mform->setDefault('lastattemptlock', $cfg_scorm->lastattemptlock);
$mform->setAdvanced('lastattemptlock');

// What Grade
$mform->addElement('select', 'whatgrade', get_string('whatgrade', 'scorm'), scorm_get_what_grade_array());
$mform->disabledIf('whatgrade', 'maxattempt','eq',1);
$mform->setHelpButton('whatgrade', array('whatgrade',get_string('whatgrade', 'scorm'), 'scorm'));
$mform->setDefault('whatgrade', $cfg_scorm->whatgrade);
$mform->setAdvanced('whatgrade');

// Activation period
/* $mform->addElement('static', '', '' ,'<hr />');
$mform->addElement('static', 'activation', get_string('activation','scorm'));
Expand Down Expand Up @@ -197,8 +191,15 @@ function definition() {
$mform->setDefault('hidebrowse', $cfg_scorm->hidebrowse);
$mform->setAdvanced('hidebrowse');

// Display course structure
$mform->addElement('selectyesno', 'displaycoursestructure', get_string('displaycoursestructure', 'scorm'));
$mform->setHelpButton('displaycoursestructure', array('displaycoursestructure',get_string('displaycoursestructure', 'scorm'), 'scorm'));
$mform->setDefault('displaycoursestructure', $cfg_scorm->displaycoursestructure);
$mform->setAdvanced('displaycoursestructure');

// Toc display
$mform->addElement('select', 'hidetoc', get_string('hidetoc', 'scorm'), scorm_get_hidetoc_array());
$mform->setHelpButton('hidetoc', array('hidetoc',get_string('hidetoc', 'scorm'), 'scorm'));
$mform->setDefault('hidetoc', $cfg_scorm->hidetoc);
$mform->setAdvanced('hidetoc');

Expand Down

0 comments on commit 87db13b

Please sign in to comment.