$string['listitems'] = 'Listing of Items in Quiz';
$string['literal'] = 'Literal';
$string['loguniform'] = 'digits, from a loguniform distribution';
-$string['lowmarkslimit'] = ' Don\'t analyze if score is less than: ';
$string['makecopy'] = 'Save as new question';
$string['managetypes'] = 'Manage question types and servers';
$string['manualgrading'] = 'Grading';
$string['onlyteachersimport'] = 'Only teachers with editing rights can import questions';
$string['onlyteachersexport'] = 'Only teachers can export questions';
$string['optional'] = 'optional';
-$string['outof'] = ' out of a maximum of ';
+$string['outof'] = '$a->grade out of a maximum of $a->maxgrade';
$string['overdue'] = 'Overdue';
$string['pagesize'] = 'Attempts shown per page: ';
$string['paragraphquestion'] = 'Paragraph Question not supported at line $a. The question will be ignored';
$string['analysis'] = 'Item analysis';
$string['analysisdownload'] = 'Analysis download';
$string['analysisoptions'] = 'Analysis options';
-$string['attemptselection'] = 'Attempts to analyze per user ';
-$string['lowmarkslimit'] = "Don't analyse if score is less than: ";
+$string['attemptselection'] = 'Attempts to analyze per user';
+$string['lowmarkslimit'] = "Don't analyse if score is less than:";
$string['attemptsall'] = 'all attempts';
$string['attemptshighest'] = 'highest grade';
$string['attemptsfirst'] = 'first attempt';
$result->grade = "0.0";
}
+ $a = new stdClass;
$percentage = round(($attempt->sumgrades/$quiz->sumgrades)*100, 0);
- $grade = round(($attempt->sumgrades/$quiz->sumgrades)*$quiz->grade, $CFG->quiz_decimalpoints);
+ $a->grade = round(($attempt->sumgrades/$quiz->sumgrades)*$quiz->grade, $CFG->quiz_decimalpoints);
+ $a->maxgrade = $quiz->grade;
$rawscore = round($attempt->sumgrades, $CFG->quiz_decimalpoints);
$table->data[] = array("$strscore:", "$rawscore/$quiz->sumgrades ($percentage %)");
- $table->data[] = array("$strgrade:", $grade.get_string('outof', 'quiz').$quiz->grade);
+ $table->data[] = array("$strgrade:", get_string('outof', 'quiz', $a));
}
}
if ($isteacher and $attempt->userid == $USER->id) {