Index: trunk/extensions/FlaggedRevs/language/ReviewedPages.i18n.php |
— | — | @@ -9,14 +9,15 @@ |
10 | 10 | |
11 | 11 | $messages['en'] = array( |
12 | 12 | 'reviewedpages' => 'Reviewed pages', |
13 | | - 'reviewedpages-leg' => 'List pages by highest review level', |
14 | | - 'reviewedpages-list' => 'This page lists pages that been reviewed (at highest) to the specified level.', |
| 13 | + 'reviewedpages-leg' => 'List pages that have been reviewed', |
| 14 | + 'reviewedpages-list' => 'This lists contains [[{{MediaWiki:Validationpage}}|reviewed]] pages whose \'\'highest attained\'\' review level (of a revision) is the specified level. |
| 15 | + A link is given to the latest revision of that level.', |
15 | 16 | 'reviewedpages-none' => 'There are no pages in this list', |
16 | 17 | 'reviewedpages-lev-0' => '{{int:revreview-lev-basic}}', |
17 | 18 | 'reviewedpages-lev-1' => '{{int:revreview-lev-quality}}', |
18 | 19 | 'reviewedpages-lev-2' => '{{int:revreview-lev-pristine}}', |
19 | 20 | 'reviewedpages-all' => 'reviewed versions', |
20 | | - 'reviewedpages-best' => 'prime revision', |
| 21 | + 'reviewedpages-best' => 'best revision', |
21 | 22 | ); |
22 | 23 | |
23 | 24 | /** Message documentation (Message documentation) |
Index: trunk/extensions/FlaggedRevs/specialpages/ReviewedPages_body.php |
— | — | @@ -69,7 +69,10 @@ |
70 | 70 | $this->namespace, $this->hideRedirs ); |
71 | 71 | $num = $pager->getNumRows(); |
72 | 72 | if ( $num ) { |
73 | | - $wgOut->addHTML( wfMsgExt( 'reviewedpages-list', array( 'parse' ), $num ) ); |
| 73 | + // Text to explain level select (if there are several levels) |
| 74 | + if ( FlaggedRevs::qualityVersions() ) { |
| 75 | + $wgOut->addHTML( wfMsgExt( 'reviewedpages-list', array( 'parse' ), $num ) ); |
| 76 | + } |
74 | 77 | $wgOut->addHTML( $pager->getNavigationBar() ); |
75 | 78 | $wgOut->addHTML( $pager->getBody() ); |
76 | 79 | $wgOut->addHTML( $pager->getNavigationBar() ); |
— | — | @@ -93,13 +96,23 @@ |
94 | 97 | $wgLang->formatNum( $size ) ) . '</small>'; |
95 | 98 | } |
96 | 99 | |
97 | | - $SVtitle = SpecialPage::getTitleFor( 'ReviewedVersions' ); |
98 | | - $list = $this->skin->makeKnownLinkObj( $SVtitle, wfMsgHtml( 'reviewedpages-all' ), |
99 | | - 'page=' . $title->getPrefixedUrl() ); |
100 | | - $best = $this->skin->makeKnownLinkObj( $title, wfMsgHtml( 'reviewedpages-best' ), |
101 | | - 'stableid=best' ); |
| 100 | + $list = $this->skin->makeKnownLinkObj( |
| 101 | + SpecialPage::getTitleFor( 'ReviewedVersions' ), |
| 102 | + wfMsgHtml( 'reviewedpages-all' ), |
| 103 | + 'page=' . $title->getPrefixedUrl() |
| 104 | + ); |
102 | 105 | |
103 | | - return "<li>$link $stxt ($list) [$best]</li>"; |
| 106 | + $best = ''; |
| 107 | + if ( FlaggedRevs::qualityVersions() ) { |
| 108 | + $best = $this->skin->makeKnownLinkObj( |
| 109 | + $title, |
| 110 | + wfMsgHtml( 'reviewedpages-best' ), |
| 111 | + 'stableid=best' |
| 112 | + ); |
| 113 | + $best = " [$best]"; |
| 114 | + } |
| 115 | + |
| 116 | + return "<li>$link $stxt ($list)$best</li>"; |
104 | 117 | } |
105 | 118 | } |
106 | 119 | |