MDL-38277 Lesson: Fix strings on activity report
authorStephen Bourget <sbourget@goffstown.k12.nh.us>
Thu, 15 Jan 2015 17:41:57 +0000 (12:41 -0500)
committerStephen Bourget <sbourget@goffstown.k12.nh.us>
Thu, 15 Jan 2015 17:41:57 +0000 (12:41 -0500)
mod/lesson/lang/en/lesson.php
mod/lesson/lib.php

index b22c9b3..683a89c 100644 (file)
@@ -56,6 +56,7 @@ $string['answeredcorrectly'] = 'answered correctly.';
 $string['answersfornumerical'] = 'Answers for numerical questions should be matched pairs of minimum and maximum values';
 $string['arrangebuttonshorizontally'] = 'Arrange content buttons horizontally?';
 $string['attempt'] = 'Attempt: {$a}';
+$string['attemptheader'] = 'Attempt';
 $string['attempts'] = 'Attempts';
 $string['attemptsdeleted'] = 'Deleted attempts';
 $string['attemptsremaining'] = 'You have {$a} attempt(s) remaining';
@@ -317,10 +318,12 @@ $string['notenoughsubquestions'] = 'Not enough sub-questions have been defined!'
 $string['nothighscore'] = 'You did not make the top {$a} high scores list.';
 $string['notitle'] = 'No title';
 $string['numberofcorrectanswers'] = 'Number of correct answers: {$a}';
+$string['numberofcorrectanswersheader'] = 'Number of correct answers';
 $string['numberofcorrectmatches'] = 'Number of correct matches: {$a}';
 $string['numberofpagestoshow'] = 'Number of pages to show';
 $string['numberofpagestoshow_help'] = 'This setting specifies the number of pages shown in a lesson. It is only applicable for lessons with pages shown in a random order (when "Action after correct answer" is set to "Show an unseen page" or "Show an unanswered page"). If set to zero, then all pages are shown.';
 $string['numberofpagesviewed'] = 'Number of questions answered: {$a}';
+$string['numberofpagesviewedheader'] = 'Number of questions answered';
 $string['numberofpagesviewednotice'] = 'Number of questions answered: {$a->nquestions}; (You should answer at least: {$a->minquestions})';
 $string['numerical'] = 'Numerical';
 $string['ongoing'] = 'Display ongoing score';
index 895faac..4310459 100644 (file)
@@ -196,8 +196,8 @@ function lesson_user_complete($course, $user, $mod, $lesson) {
                 "retry, timeseen")) {
         echo $OUTPUT->box_start();
         $table = new html_table();
-        $table->head = array (get_string("attempt", "lesson"),  get_string("numberofpagesviewed", "lesson"),
-            get_string("numberofcorrectanswers", "lesson"), get_string("time"));
+        $table->head = array (get_string("attemptheader", "lesson"),  get_string("numberofpagesviewedheader", "lesson"),
+            get_string("numberofcorrectanswersheader", "lesson"), get_string("time"));
         $table->width = "100%";
         $table->align = array ("center", "center", "center", "center");
         $table->size = array ("*", "*", "*", "*");