Index: trunk/extensions/Quiz/Quiz.i18n.php |
— | — | @@ -52,7 +52,7 @@ |
53 | 53 | 'quiz_colorError' => "Syntax error", |
54 | 54 | 'quiz_correction' => "Submit", |
55 | 55 | 'quiz_score' => "Your score is $1 / $2", |
56 | | - 'quiz_points' => "$1 | $2 point(s)", |
| 56 | + 'quiz_points' => "$1 | {{PLURAL:$2|1 point|$2 points}}", |
57 | 57 | 'quiz_reset' => "Reset" |
58 | 58 | ); |
59 | 59 | |
— | — | @@ -421,7 +421,7 @@ |
422 | 422 | 'quiz_colorError' => 'שגיאת תחביר', |
423 | 423 | 'quiz_correction' => 'שליחה', |
424 | 424 | 'quiz_score' => 'הניקוד שלך הוא $1 / $2', |
425 | | - 'quiz_points' => '$1 | $2 נקודות', |
| 425 | + 'quiz_points' => '$1 | {{PLURAL:$2|נקודה אחת|$2 נקודות}}', |
426 | 426 | 'quiz_reset' => 'איפוס', |
427 | 427 | ); |
428 | 428 | |
Index: trunk/extensions/Quiz/Quiz.php |
— | — | @@ -409,16 +409,16 @@ |
410 | 410 | case "right": |
411 | 411 | $this->mTotal += $this->mAddedPoints * $question->mCoef; |
412 | 412 | $this->mScore += $this->mAddedPoints * $question->mCoef; |
413 | | - $output.= "title=\"".wfMsgHtml('quiz_points', wfMsgHtml('quiz_colorRight'), $this->mAddedPoints * $question->mCoef)."\""; |
| 413 | + $output.= "title=\"".wfMsgExt('quiz_points', array('escape', 'parsemag'), wfMsg('quiz_colorRight'), $this->mAddedPoints * $question->mCoef)."\""; |
414 | 414 | break; |
415 | 415 | case "wrong": |
416 | 416 | $this->mTotal += $this->mAddedPoints * $question->mCoef; |
417 | 417 | $this->mScore -= $this->mCutoffPoints * $question->mCoef; |
418 | | - $output.= "title=\"".wfMsgHtml('quiz_points', wfMsgHtml('quiz_colorWrong'), -$this->mCutoffPoints * $question->mCoef)."\""; |
| 418 | + $output.= "title=\"".wfMsgExt('quiz_points', array('escape', 'parsemag'), wfMsg('quiz_colorWrong'), -$this->mCutoffPoints * $question->mCoef)."\""; |
419 | 419 | break; |
420 | 420 | case "NA": |
421 | 421 | $this->mTotal += $this->mAddedPoints * $question->mCoef; |
422 | | - $output.= "title=\"".wfMsgHtml('quiz_points', wfMsgHtml('quiz_colorNA'), 0)."\""; |
| 422 | + $output.= "title=\"".wfMsgExt('quiz_points', array('escape', 'parsemag'), wfMsg('quiz_colorNA'), 0)."\""; |
423 | 423 | break; |
424 | 424 | case "error": |
425 | 425 | $this->mState = "error"; |