$string['calculatefrom'] = 'Calculate statistics from';
+$string['duration'] = 'Open for';
$string['quizinformation'] = 'Quiz information';
$string['quizoverallstatistics'] = 'Quiz overall statistics';
$string['quizname'] = 'Quiz name';
$string['noofallattempts'] = 'Total number of attempts';
$string['statsfor'] = 'Statistics (for $a)';
$string['attempts'] = 'Attempts';
-$string['firstattempts'] = 'for first attempts';
-$string['allattempts'] = 'for all attempts';
+$string['firstattempts'] = 'first attempts';
+$string['allattempts'] = 'all attempts';
$string['firstattemptsavg'] = 'Average grade of first attempts';
$string['allattemptsavg'] = 'Average grade of all attempts';
$string['attemptsall'] = 'all attempts';
<?php
/**
- * This script lists student attempts
+ * This script calculates various statistics about student attempts
*
* @version $Id$
- * @author Martin Dougiamas, Tim Hunt and others.
+ * @author Martin Dougiamas, Jamie Pratt, Tim Hunt and others.
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
* @package quiz
*//** */
$quizinformationtable->data[] = array(get_string('quizclose', 'quiz'), userdate($quiz->timeclose));
}
if ($quiz->timeopen && $quiz->timeclose){
- $quizinformationtable->data[] = array(get_string('duration'), format_time($quiz->timeclose - $quiz->timeopen));
+ $quizinformationtable->data[] = array(get_string('duration', 'quiz_statistics'), format_time($quiz->timeclose - $quiz->timeopen));
}
print_table($quizinformationtable);
}