r39945 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39944‎ | r39945 | r39946 >
Date:14:23, 25 August 2008
Author:demon
Status:old
Tags:
Comment:
{{PLURAL}}-ize two messages here.
Modified paths:
  • /trunk/extensions/Quiz/Quiz.i18n.php (modified) (history)
  • /trunk/extensions/Quiz/Quiz.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Quiz/Quiz.i18n.php
@@ -42,8 +42,8 @@
4343
4444 $messages['en'] = array(
4545 'quiz_desc' => 'Allows creation of quizzes',
46 - 'quiz_addedPoints' => "Point(s) added for a correct answer",
47 - 'quiz_cutoffPoints' => "Point(s) subtracted for a wrong answer",
 46+ 'quiz_addedPoints' => "{{PLURAL:$1|Point|Points}} added for a correct answer",
 47+ 'quiz_cutoffPoints' => "{{PLURAL:$1|Point|Points}} for a wrong answer",
4848 'quiz_ignoreCoef' => "Ignore the questions' coefficients",
4949 'quiz_shuffle' => "Shuffle questions",
5050 'quiz_colorRight' => "Right",
Index: trunk/extensions/Quiz/Quiz.php
@@ -246,9 +246,9 @@
247247 # Determine the content of the settings table.
248248 $settings = array_fill(0, 4, "");
249249 if(!$this->mDisplaySimple) {
250 - $settings[0] .= "<td>".wfMsgHtml('quiz_addedPoints').":</td>" .
 250+ $settings[0] .= "<td>".wfMsgHtml( 'quiz_addedPoints', $this->mAddedPoints ).":</td>" .
251251 "<td><input class=\"numerical\" type=\"text\" name=\"addedPoints\" value=\"$this->mAddedPoints\"/>&nbsp;&nbsp;</td>";
252 - $settings[1] .= "<td>".wfMsgHtml('quiz_cutoffPoints').":</td>" .
 252+ $settings[1] .= "<td>".wfMsgHtml('quiz_cutoffPoints', $this->mCutoffPoints ).":</td>" .
253253 "<td><input class=\"numerical\" type=\"text\" name=\"cutoffPoints\" value=\"$this->mCutoffPoints\"/></td>";
254254 $bChecked = ($this->mIgnoringCoef)? "checked=\"checked\"" : "";
255255 $settings[2] .= "<td>".wfMsgHtml('quiz_ignoreCoef').":</td>" .

Status & tagging log