From: defacer Date: Tue, 1 Feb 2005 08:44:04 +0000 (+0000) Subject: Perfecting the wording to distinguish between singular and plural. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d9f7e051b9f9adf97a713c674463f735849eb039;p=moodle.git Perfecting the wording to distinguish between singular and plural. --- diff --git a/blocks/quiz_results/block_quiz_results.php b/blocks/quiz_results/block_quiz_results.php index e31e1d1d31..af7035cbfd 100644 --- a/blocks/quiz_results/block_quiz_results.php +++ b/blocks/quiz_results/block_quiz_results.php @@ -169,7 +169,9 @@ class block_quiz_results extends block_base { $rank = 0; if(!empty($best)) { - $this->content->text .= ''; + $this->content->text .= '
'.get_string('bestgroupgrades', 'block_quiz_results', $numbest).'
'; foreach($best as $groupid => $averagegrade) { $this->content->text .= '
'; + $this->content->text .= ($numbest == 1?get_string('bestgroupgrade', 'block_quiz_results'):get_string('bestgroupgrades', 'block_quiz_results', $numbest)); + $this->content->text .= '
'.(++$rank).'.'.$groupgrades[$groupid]['group'].''; switch($gradeformat) { @@ -192,7 +194,9 @@ class block_quiz_results extends block_base { $rank = 0; if(!empty($worst)) { $worst = array_reverse($worst, true); - $this->content->text .= ''; + $this->content->text .= '
'.get_string('worstgroupgrades', 'block_quiz_results', $numworst).'
'; foreach($worst as $groupid => $averagegrade) { $this->content->text .= '
'; + $this->content->text .= ($numworst == 1?get_string('worstgroupgrade', 'block_quiz_results'):get_string('worstgroupgrades', 'block_quiz_results', $numworst)); + $this->content->text .= '
'.(++$rank).'.'.$groupgrades[$groupid]['group'].''; switch($gradeformat) { @@ -277,7 +281,9 @@ class block_quiz_results extends block_base { $rank = 0; if(!empty($best)) { - $this->content->text .= ''; + $this->content->text .= '
'.get_string('bestgrades', 'block_quiz_results', $numbest).'
'; foreach($best as $userid => $gradeid) { $this->content->text .= '
'; + $this->content->text .= ($numbest == 1?get_string('bestgrade', 'block_quiz_results'):get_string('bestgrades', 'block_quiz_results', $numbest)); + $this->content->text .= '
'.(++$rank).'.'.fullname($users[$userid]).''; switch($gradeformat) { @@ -300,7 +306,9 @@ class block_quiz_results extends block_base { $rank = 0; if(!empty($worst)) { $worst = array_reverse($worst, true); - $this->content->text .= ''; + $this->content->text .= '
'.get_string('worstgrades', 'block_quiz_results', $numworst).'
'; foreach($worst as $userid => $gradeid) { $this->content->text .= '
'; + $this->content->text .= ($numworst == 1?get_string('worstgrade', 'block_quiz_results'):get_string('worstgrades', 'block_quiz_results', $numworst)); + $this->content->text .= '
'.(++$rank).'.'.fullname($users[$userid]).''; switch($gradeformat) { diff --git a/lang/en/block_quiz_results.php b/lang/en/block_quiz_results.php index e0dff6946b..a10bd96cfe 100644 --- a/lang/en/block_quiz_results.php +++ b/lang/en/block_quiz_results.php @@ -1,8 +1,12 @@