Bug #6157 - lang strings using concatenation, not $a.

This commit is contained in:
tjhunt
2006-07-24 14:35:03 +00:00
parent 644600315c
commit 87cb44ac9f
3 changed files with 7 additions and 6 deletions
+1 -2
View File
@@ -245,7 +245,6 @@ $string['link'] = 'Link';
$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';
@@ -313,7 +312,7 @@ $string['none']= 'None';
$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';
+2 -2
View File
@@ -3,8 +3,8 @@
$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';
+4 -2
View File
@@ -189,11 +189,13 @@
$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) {