Skip to content

Commit

Permalink
SCORM MDL-16726 tidy up help strings
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Jun 24, 2010
1 parent 2b8f39c commit 427bcd4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 10 additions & 1 deletion mod/scorm/lang/en/scorm.php
Expand Up @@ -186,6 +186,8 @@
$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';
Expand Down Expand Up @@ -220,6 +222,14 @@
$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';
Expand Down Expand Up @@ -257,7 +267,6 @@
$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.';
Expand Down
6 changes: 4 additions & 2 deletions mod/scorm/mod_form.php
Expand Up @@ -54,9 +54,10 @@ function definition() {
// 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);
Expand All @@ -66,6 +67,7 @@ function definition() {
$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);

//-------------------------------------------------------------------------------
Expand Down

0 comments on commit 427bcd4

Please sign in to comment.