http://www.mediawiki.org/wiki/Special:Code/MediaWiki/55128

Revision: 55128
Author:   aaron
Date:     2009-08-16 07:31:43 +0000 (Sun, 16 Aug 2009)

Log Message:
-----------
UI cleanup

Modified Paths:
--------------
    trunk/extensions/ReaderFeedback/language/RatingHistory.i18n.php
    trunk/extensions/ReaderFeedback/specialpages/RatingHistory_body.php

Modified: trunk/extensions/ReaderFeedback/language/RatingHistory.i18n.php
===================================================================
--- trunk/extensions/ReaderFeedback/language/RatingHistory.i18n.php     
2009-08-16 07:07:40 UTC (rev 55127)
+++ trunk/extensions/ReaderFeedback/language/RatingHistory.i18n.php     
2009-08-16 07:31:43 UTC (rev 55128)
@@ -28,13 +28,13 @@
        'ratinghistory-table-rating' => 'Rating',
        'ratinghistory-table-votes'  => 'Votes',
        'ratinghistory-none'    => 'There is not enough reader feedback data 
available for graphs at this time.',
-       'ratinghistory-legend'  => 'The \'\'\'daily average rating\'\'\' <font 
color="blue">\'\'(blue)\'\'</font> and 
-       \'\'\'running average rating\'\'\' <font 
color="green">\'\'(green)\'\'</font> are graphed below, by date. The 
-       \'\'\'running average rating\'\'\' is simply the average of all the 
daily ratings \'\'within\'\' this time frame for each day.
+       'ratinghistory-ratings' => '\'\'\'Legend:\'\'\' \'\'\'(1)\'\'\' - Poor; 
\'\'\'(2)\'\'\' - Low; \'\'\'(3)\'\'\' - Fair; \'\'\'(4)\'\'\' - High; 
\'\'\'(5)\'\'\' - Excellent;',
+       'ratinghistory-legend'  => 'The \'\'\'daily number of reviews\'\'\' 
<font color="red">\'\'(red)\'\'</font>, \'\'\'daily average rating\'\'\' <font 
color="blue">\'\'(blue)\'\'</font>,
+       and \'\'\'running average rating\'\'\' <font 
color="green">\'\'(green)\'\'</font> are graphed below, by date.
+       The \'\'\'running average rating\'\'\' is simply the average of all the 
daily ratings \'\'within\'\' this time frame for each day.
+       The ratings are as follows:
        
-Scale: \'\'\'[1]\'\'\' - Poor; \'\'\'[2]\'\'\' - Low; \'\'\'[3]\'\'\' - Fair; 
\'\'\'[4]\'\'\' - High; \'\'\'[5]\'\'\' - Excellent;
-
-       The \'\'\'number of reviews per day\'\'\' <font 
color="red">\'\'(red)\'\'</font> is shown on the graphs below; the scale is 
given for each graph.',
+       \'\'\'(1)\'\'\' - Poor; \'\'\'(2)\'\'\' - Low; \'\'\'(3)\'\'\' - Fair; 
\'\'\'(4)\'\'\' - High; \'\'\'(5)\'\'\' - Excellent;',
        'ratinghistory-graph-scale' => '\'\'\'Reviews per day\'\'\' <font 
color="red">\'\'(red)\'\'</font> shown on a \'\'1:$1\'\' scale.',
        'right-feedback' => 'Use the feedback form to rate a page',
 );

Modified: trunk/extensions/ReaderFeedback/specialpages/RatingHistory_body.php
===================================================================
--- trunk/extensions/ReaderFeedback/specialpages/RatingHistory_body.php 
2009-08-16 07:07:40 UTC (rev 55127)
+++ trunk/extensions/ReaderFeedback/specialpages/RatingHistory_body.php 
2009-08-16 07:31:43 UTC (rev 55128)
@@ -73,11 +73,14 @@
                global $wgOut;
                # Show latest month of results
                $html = ReaderFeedback::getVoteAggregates( $this->page, 
$this->period, array(),
-                       $this->doPurge ? 'skipCache' : 'useCache'
+                       ($this->doPurge ? 'skipCache' : 'useCache')
                );
-               if( $html ) {
-                       $wgOut->addHTML( 
'<h2>'.wfMsgHtml('ratinghistory-table')."</h2>\n".
-                               "<div 
class='rfb-reader_feedback_ratings'>$html</div>" );
+               if( $html != '' ) {
+                       $wgOut->addHTML(
+                               '<h2>' . wfMsgHtml('ratinghistory-table') . 
"</h2>\n" .
+                               wfMsgExt( 'ratinghistory-ratings', 'parse' ) . 
"\n" .
+                               "<div 
class='rfb-reader_feedback_ratings'>$html</div>"
+                       );
                }
        }
        



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to