MDL-15268 "Content for Quiz Statistics report table" some fixes to strings.

This commit is contained in:
jamiesensei 2008-07-14 06:40:36 +00:00
parent 04c8148a4f
commit fb94cd4848
2 changed files with 6 additions and 5 deletions

View File

@ -6,6 +6,7 @@ $string['statistics'] = 'Statistics';
$string['calculatefrom'] = 'Calculate statistics from';
$string['duration'] = 'Open for';
$string['quizinformation'] = 'Quiz information';
$string['quizoverallstatistics'] = 'Quiz overall statistics';
$string['quizname'] = 'Quiz name';
@ -14,8 +15,8 @@ $string['nooffirstattempts'] = 'Number of first attempts';
$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';

View File

@ -1,9 +1,9 @@
<?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
*//** */
@ -98,7 +98,7 @@ class quiz_statistics_report extends quiz_default_report {
$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);
}