SCORM MDL-16726 tidy up help strings
This commit is contained in:
@@ -186,6 +186,8 @@ $string['package'] = 'Package file';
|
||||
$string['package_help'] = 'The package file is a zip (or pif) file containing SCORM/AICC course definition files.';
|
||||
$string['packagedir'] = 'Filesystem Error: Can\'t create package directory';
|
||||
$string['packagefile'] = 'No package file specified';
|
||||
$string['packageurl'] = 'URL';
|
||||
$string['packageurl_help'] = 'The URL allows you to provide a direct link to a SCORM object not contained within the Moodle file area.';
|
||||
$string['passed'] = 'Passed';
|
||||
$string['php5'] = 'PHP 5 (DOMXML native library)';
|
||||
$string['popup'] = 'New window';
|
||||
@@ -220,6 +222,14 @@ $string['scormresponsedeleted'] = 'Deleted user attempts';
|
||||
$string['scorm:savetrack'] = 'Save tracks';
|
||||
$string['scorm:skipview'] = 'Skip overview';
|
||||
$string['scormtype'] = 'Type';
|
||||
$string['scormtype_help'] = 'The SCORM Type is the method of accessing the SCORM object.
|
||||
|
||||
There are up to 4 different types:
|
||||
|
||||
* Uploaded Package - this is the standard method of selecting a SCORM using the Moodle file picker.
|
||||
* External SCORM Manifest - this allows a direct url to an imsmanifest.xml file to be selected. WARNING: If this link uses a different domain name than your Moodle site then Grades cannot be saved.
|
||||
* Downloaded Package - This is a direct url to a SCORM zip package, this is a safe way to link to a file on a different domain than your Moodle site.
|
||||
* Local IMS content repository - If an IMS repository has been created, you can select a SCORM object within the repository using this option.';
|
||||
$string['scorm:viewreport'] = 'View reports';
|
||||
$string['scorm:viewscores'] = 'View scores';
|
||||
$string['scrollbars'] = 'Allow the window to be scrolled';
|
||||
@@ -257,7 +267,6 @@ $string['unziperror'] = 'An error occurs during package unzip';
|
||||
$string['updatefreq'] = 'Auto-update frequency';
|
||||
$string['updatefreqdesc'] = 'This preference sets the default auto-update frequency of an activity';
|
||||
$string['updatetime'] = 'Synchronisation time';
|
||||
$string['url'] = 'URL';
|
||||
$string['validateascorm'] = 'Validate a package';
|
||||
$string['validation'] = 'Validation result';
|
||||
$string['validationtype'] = 'This preference set the DOMXML library used for validating SCORM Manifest. If you don\'t know leave the selected choice.';
|
||||
|
||||
@@ -54,9 +54,10 @@ class mod_scorm_mod_form extends moodleform_mod {
|
||||
// Reference
|
||||
if (count($options) > 1) {
|
||||
$mform->addElement('select', 'scormtype', get_string('scormtype', 'scorm'), $options);
|
||||
$mform->addElement('text', 'packageurl', get_string('url', 'scorm'), array('size'=>60));
|
||||
$mform->addHelpButton('scormtype', 'scormtype', 'scorm');
|
||||
$mform->addElement('text', 'packageurl', get_string('packageurl', 'scorm'), array('size'=>60));
|
||||
$mform->setType('packageurl', PARAM_RAW);
|
||||
$mform->addHelpButton('packageurl', 'package', 'scorm');
|
||||
$mform->addHelpButton('packageurl', 'packageurl', 'scorm');
|
||||
$mform->disabledIf('packageurl', 'scormtype', 'eq', SCORM_TYPE_LOCAL);
|
||||
} else {
|
||||
$mform->addElement('hidden', 'scormtype', SCORM_TYPE_LOCAL);
|
||||
@@ -66,6 +67,7 @@ class mod_scorm_mod_form extends moodleform_mod {
|
||||
$maxbytes = get_max_upload_file_size($CFG->maxbytes, $COURSE->maxbytes);
|
||||
$mform->setMaxFileSize($maxbytes);
|
||||
$mform->addElement('filepicker', 'packagefile', get_string('package','scorm'));
|
||||
$mform->addHelpButton('packagefile', 'package', 'scorm');
|
||||
$mform->disabledIf('packagefile', 'scormtype', 'noteq', SCORM_TYPE_LOCAL);
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user