Index: trunk/extensions/FlaggedRevs/language/RatingHistory.i18n.php |
— | — | @@ -8,12 +8,17 @@ |
9 | 9 | $messages = array(); |
10 | 10 | |
11 | 11 | $messages['en'] = array( |
12 | | - 'ratinghistory' => 'Page rating history', |
13 | | - 'ratinghistory-text' => 'This page displays article rating data for [[:$1|$1]].', |
14 | | - 'ratinghistory-leg' => 'Rating history data', |
15 | | - 'ratinghistory-tab' => 'rating', |
16 | | - 'ratinghistory-period' => 'Time period:', |
17 | | - 'ratinghistory-month' => 'last month', |
18 | | - 'ratinghistory-year' => 'last year', |
19 | | - 'ratinghistory-3years' => 'last 3 years' |
| 12 | + 'ratinghistory' => 'Page rating history', |
| 13 | + 'ratinghistory-text' => '\'\'\'This page displays article rating data for [[:$1|$1]].\'\'\'', |
| 14 | + 'ratinghistory-leg' => 'Rating history data', |
| 15 | + 'ratinghistory-tab' => 'rating', |
| 16 | + 'ratinghistory-period' => 'Time period:', |
| 17 | + 'ratinghistory-month' => 'last month', |
| 18 | + 'ratinghistory-year' => 'last year', |
| 19 | + 'ratinghistory-3years' => 'last 3 years', |
| 20 | + 'ratinghistory-legend' => 'The daily average <font color="blue">\'\'(blue)\'\'</font> and selected interval |
| 21 | + average <font color="green">\'\'(green)\'\'</font> rating will be graphed below, by date. The number of reviews is shown in the |
| 22 | + upper right-hand corner of the graphs; higher values tend to indicated better sample data. The rating values are to be interpreted as as follows: |
| 23 | + |
| 24 | +\'\'\'[0]\'\'\' - Poor; \'\'\'[1]\'\'\' - Low; \'\'\'[2]\'\'\' - Fair; \'\'\'[3]\'\'\' - High; \'\'\'[4]\'\'\' - Excellent;' |
20 | 25 | ); |
Index: trunk/extensions/FlaggedRevs/specialpages/RatingHistory_body.php |
— | — | @@ -51,6 +51,7 @@ |
52 | 52 | protected function showHeader() { |
53 | 53 | global $wgOut; |
54 | 54 | $wgOut->addWikiText( wfMsg('ratinghistory-text',$this->page->getPrefixedText()) ); |
| 55 | + $wgOut->addWikiText( wfMsg('ratinghistory-legend') ); |
55 | 56 | } |
56 | 57 | |
57 | 58 | protected function showForm() { |
— | — | @@ -61,14 +62,6 @@ |
62 | 63 | $form .= Xml::hidden( 'target', $this->page->getPrefixedDBKey() ); |
63 | 64 | $form .= $this->getPeriodMenu( $this->period ); |
64 | 65 | $form .= " ".Xml::submitButton( wfMsg( 'go' ) ); |
65 | | - // Show legend |
66 | | - $form .= wfMsgExt('ratinghistory-ave',array('parse')); |
67 | | - $form .= Xml::openElement( 'div', array('class' => 'reader_feedback_legend') ); |
68 | | - for( $i=0; $i <= 4; $i++) { |
69 | | - $form .= "<b>[$i]</b> - " . wfMsgHtml( "readerfeedback-level-$i" ); |
70 | | - $form .= " "; |
71 | | - } |
72 | | - $form .= Xml::closeElement( 'div' ); |
73 | 66 | $form .= "</fieldset></form>\n"; |
74 | 67 | $wgOut->addHTML( $form ); |
75 | 68 | } |
— | — | @@ -158,7 +151,7 @@ |
159 | 152 | # Fill in days with no votes to keep spacing even |
160 | 153 | if( $day > ($lastDay + 1) ) { |
161 | 154 | for( $i=($lastDay + 1); $i < $day; $i++ ) { |
162 | | - $data[] = array("{$month}/{$i}",'',''); |
| 155 | + $data[] = array("|",'',''); |
163 | 156 | } |
164 | 157 | } |
165 | 158 | $data[] = array("{$month}/{$day}",$dayAve,$cumAve); |
— | — | @@ -170,7 +163,9 @@ |
171 | 164 | $plot->SetXTickLabelPos('none'); |
172 | 165 | $plot->SetXTickPos('none'); |
173 | 166 | $plot->SetYTickIncrement( .5 ); |
174 | | - $plot->SetPlotAreaWorld( 0, 0, null, 4.5 ); |
| 167 | + $plot->SetPlotAreaWorld( 0, 0, null, 4 ); |
| 168 | + // Show total number of votes |
| 169 | + $plot->SetLegend( array("#{$totalCount}") ); |
175 | 170 | // Draw it! |
176 | 171 | $plot->DrawGraph(); |
177 | 172 | return true; |