Index: trunk/extensions/FlaggedRevs/language/StableVersions.i18n.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | 'stableversions-leg1' => 'List reviewed revisions for a page', |
14 | 14 | 'stableversions-page' => 'Page name:', |
15 | 15 | 'stableversions-none' => '"[[:$1]]" has no reviewed revisions.', |
16 | | - 'stableversions-list' => 'The following is a list of revisions of [[:$1]] that have been reviewed:', |
| 16 | + 'stableversions-list' => 'The following is a list of {{PLURAL:$2|the only revision|revisions}} of [[:$1]] that {{PLURAL:$2|has|have}} been reviewed:', |
17 | 17 | 'stableversions-review' => 'Reviewed on <i>$1</i> by $2', |
18 | 18 | ); |
19 | 19 | |
— | — | @@ -27,7 +27,9 @@ |
28 | 28 | {{Identical|Page name}}', |
29 | 29 | 'stableversions-none' => '{{Flagged Revs}} |
30 | 30 | Message is displayed on Special:Stableversions for pages that has no reviewed revisions. Parameter $1 is the pagename.', |
31 | | - 'stableversions-list' => '{{Flagged Revs}}', |
| 31 | + 'stableversions-list' => '{{Flagged Revs}} |
| 32 | +Parameter $1 is a page title, |
| 33 | +Parameter $2 is the count of revisions following, to be used with PLURAL.', |
32 | 34 | 'stableversions-review' => '{{Flagged Revs}} |
33 | 35 | This message is used in the list of stable versions of a page (Special:Stableversions) to specify who has reviewed each version. |
34 | 36 | Parameter $1 is the date and time of the review, |
Index: trunk/extensions/FlaggedRevs/language/OldReviewedPages.i18n.php |
— | — | @@ -36,7 +36,8 @@ |
37 | 37 | Title of [http://en.labs.wikimedia.org/wiki/Special:OldReviewedPages Special:OldReviewedPages].', |
38 | 38 | 'oldreviewedpages-legend' => '{{Flagged Revs-small}} |
39 | 39 | Used on [http://en.labs.wikimedia.org/wiki/Special:OldReviewedPages Special:OldReviewedPages] as title/legend of the fieldset.', |
40 | | - 'oldreviewedpages-list' => '{{Flagged Revs}}', |
| 40 | + 'oldreviewedpages-list' => '{{Flagged Revs}} |
| 41 | +Parameter $1 is the number of pages going to be listed, to be used with PLURAL.', |
41 | 42 | 'oldreviewedpages-none' => '{{Flagged Revs}}', |
42 | 43 | 'oldreviewedpages-hours' => '{{Flagged Revs}}', |
43 | 44 | 'oldreviewedpages-days' => '{{Flagged Revs}}', |
Index: trunk/extensions/FlaggedRevs/language/ReviewedPages.i18n.php |
— | — | @@ -10,7 +10,7 @@ |
11 | 11 | $messages['en'] = array( |
12 | 12 | 'reviewedpages' => 'Reviewed pages', |
13 | 13 | 'reviewedpages-leg' => 'List pages by highest level', |
14 | | - 'reviewedpages-list' => 'The following pages have been reviewed to the specified level', |
| 14 | + 'reviewedpages-list' => 'The following {{PLURAL:$1|page has|pages have}} been reviewed to the specified level', |
15 | 15 | 'reviewedpages-none' => 'There are no pages in this list', |
16 | 16 | 'reviewedpages-lev-0' => '{{int:revreview-lev-sighted}}', |
17 | 17 | 'reviewedpages-lev-1' => '{{int:revreview-lev-quality}}', |
— | — | @@ -26,7 +26,8 @@ |
27 | 27 | $messages['qqq'] = array( |
28 | 28 | 'reviewedpages' => '{{Flagged Revs}}', |
29 | 29 | 'reviewedpages-leg' => '{{Flagged Revs}}', |
30 | | - 'reviewedpages-list' => '{{Flagged Revs}}', |
| 30 | + 'reviewedpages-list' => '{{Flagged Revs}} |
| 31 | +Parameter $1 is the number of reviewed pages for use with PLURAL.', |
31 | 32 | 'reviewedpages-none' => '{{Flagged Revs}} |
32 | 33 | {{Identical|There are no pages in this list}}', |
33 | 34 | 'reviewedpages-lev-0' => '{{Flagged Revs}}', |
Index: trunk/extensions/FlaggedRevs/specialpages/StableVersions_body.php |
— | — | @@ -41,9 +41,9 @@ |
42 | 42 | return; |
43 | 43 | } |
44 | 44 | $pager = new StableRevisionsPager( $this, array(), $this->page ); |
45 | | - if( $pager->getNumRows() ) { |
46 | | - $wgOut->addHTML( wfMsgExt('stableversions-list', array('parse'), |
47 | | - $this->page->getPrefixedText() ) ); |
| 45 | + if( $num = $pager->getNumRows() ) { |
| 46 | + $wgOut->addHTML( wfMsgExt('stableversions-list', array('parse', 'parsemag'), |
| 47 | + $this->page->getPrefixedText(), $num ) ); |
48 | 48 | $wgOut->addHTML( $pager->getNavigationBar() ); |
49 | 49 | $wgOut->addHTML( "<ul>" . $pager->getBody() . "</ul>" ); |
50 | 50 | $wgOut->addHTML( $pager->getNavigationBar() ); |
Index: trunk/extensions/FlaggedRevs/specialpages/OldReviewedPages_body.php |
— | — | @@ -91,8 +91,9 @@ |
92 | 92 | # Add filter options |
93 | 93 | $wgOut->addHTML( $form ); |
94 | 94 | # Add list output |
95 | | - $wgOut->addHTML( wfMsgExt('oldreviewedpages-list', array('parse') ) ); |
96 | | - if( $pager->getNumRows() ) { |
| 95 | + $num = $pager->getNumRows(); |
| 96 | + $wgOut->addHTML( wfMsgExt('oldreviewedpages-list', array('parse', 'parsemag'), $num ) ); |
| 97 | + if( $num ) { |
97 | 98 | $wgOut->addHTML( $pager->getNavigationBar() ); |
98 | 99 | $wgOut->addHTML( $pager->getBody() ); |
99 | 100 | $wgOut->addHTML( $pager->getNavigationBar() ); |
Index: trunk/extensions/FlaggedRevs/specialpages/ReviewedPages_body.php |
— | — | @@ -61,8 +61,8 @@ |
62 | 62 | global $wgOut, $wgUser, $wgLang; |
63 | 63 | |
64 | 64 | $pager = new ReviewedPagesPager( $this, array(), $this->type, $this->namespace, $this->hideRedirs ); |
65 | | - if( $pager->getNumRows() ) { |
66 | | - $wgOut->addHTML( wfMsgExt('reviewedpages-list', array('parse') ) ); |
| 65 | + if( $num = $pager->getNumRows() ) { |
| 66 | + $wgOut->addHTML( wfMsgExt('reviewedpages-list', array('parse', 'parsemag'), $num ) ); |
67 | 67 | $wgOut->addHTML( $pager->getNavigationBar() ); |
68 | 68 | $wgOut->addHTML( $pager->getBody() ); |
69 | 69 | $wgOut->addHTML( $pager->getNavigationBar() ); |