Permalink
Browse files

Some fixups for the SCORM update page (missing strings etc)

  • Loading branch information...
1 parent e1e9407 commit 50e7e0494966390dc9bbf4cc8d1d9f0930d8ae81 moodler committed Jun 22, 2007
Showing with 9 additions and 9 deletions.
  1. +3 −2 lang/en_utf8/form.php
  2. +3 −1 lang/en_utf8/scorm.php
  3. +3 −6 mod/scorm/mod_form.php
View
5 lang/en_utf8/form.php
@@ -17,16 +17,17 @@
$string['general'] = 'General';
$string['optional'] = 'Optional';
$string['revealpassword'] = 'Reveal';
-$string['modstandardels']='Common Module Settings';
+$string['modstandardels']='Common module settings';
$string['miscellaneoussettings']='Miscellaneous Settings';
+$string['othersettings']='Other settings';
$string['addfields']='Add $a fields to form';
$string['day']='Day';
$string['month']='Month';
$string['year']='Year';
$string['hour']='Hour';
$string['minute']='Minute';
-$string['advancedelement']='Advanced Element';
+$string['advancedelement']='Advanced element';
$string['hideadvanced']='Hide Advanced';
$string['showadvanced']='Show Advanced';
View
4 lang/en_utf8/scorm.php
@@ -6,7 +6,9 @@
$string['asset'] = 'Asset';
$string['assetlaunched'] = 'Asset - Viewed';
$string['attempt'] = 'attempt';
-$string['attempts'] = 'attempts';
+$string['attempt1'] = '1 attempt';
+$string['attempts'] = 'Attempts';
+$string['attemptsx'] = '$a attempts';
$string['attr_error'] = 'Bad value for attribute ($a->attr) in tag $a->tag.';
$string['autocontinue'] = 'Auto-Continue';
$string['averageattempt'] = 'Average attempts';
View
9 mod/scorm/mod_form.php
@@ -31,10 +31,8 @@ function definition() {
//-------------------------------------------------------------------------------
// Other Settings
- $mform->addElement('header', 'advanced', get_string('othersettings'));
+ $mform->addElement('header', 'advanced', get_string('othersettings', 'form'));
-// Grading
- $mform->addElement('static', 'grade', get_string('grades'));
// Grade Method
$mform->addElement('select', 'grademethod', get_string('grademethod', 'scorm'), $SCORM_GRADE_METHOD);
$mform->setHelpButton('grademethod', array('grademethod',get_string('grademethod', 'scorm')), 'scorm');
@@ -50,15 +48,14 @@ function definition() {
// Attempts
$mform->addElement('static', '', '' ,'<hr />');
- $mform->addElement('static', 'attempts', get_string('attempts','scorm'));
// Max Attempts
$attempts = array(0 => get_string('nolimit','scorm'));
for ($i=1; $i<=$CFG->scorm_maxattempts; $i++) {
if ($i == 1) {
- $attempts[$i] = $i . ' ' . get_string('attempt','scorm');
+ $attempts[$i] = get_string('attempt1','scorm');
} else {
- $attempts[$i] = $i . ' ' . get_string('attempts','scorm');
+ $attempts[$i] = get_string('attemptsx','scorm', $i);
}
}
$mform->addElement('select', 'maxattempt', get_string('maximumattempts', 'scorm'), $attempts);

0 comments on commit 50e7e04

Please sign in to comment.