r41909 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41908‎ | r41909 | r41910 >
Date:00:37, 10 October 2008
Author:aaron
Status:old
Tags:
Comment:
Improve graph title
Modified paths:
  • /trunk/extensions/FlaggedRevs/language/RatingHistory.i18n.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/specialpages/RatingHistory_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/language/RatingHistory.i18n.php
@@ -18,7 +18,7 @@
1919 'ratinghistory-month' => 'last month',
2020 'ratinghistory-year' => 'last year',
2121 'ratinghistory-3years' => 'last 3 years',
22 - 'ratinghistory-graph' => 'Review data from $1 {{PLURAL:$1|reader|readers}}',
 22+ 'ratinghistory-graph' => '$2 of article "$3" ($1 {{PLURAL:$1|reader|readers}})',
2323 'ratinghistory-none' => 'There is not enough reader feedback data available for graphs at this time.',
2424 'ratinghistory-legend' => 'The daily average rating <font color="blue">\'\'(blue)\'\'</font> and selected interval
2525 average rating <font color="green">\'\'(green)\'\'</font> are graphed below, by date. The rating values are to be interpreted as follows:
Index: trunk/extensions/FlaggedRevs/specialpages/RatingHistory_body.php
@@ -413,7 +413,8 @@
414414 $plot->styleTagsY = 'font-family: sans-serif; font-size: 10pt;';
415415 $plot->format['dave'] = array( 'style' => 'stroke:blue; stroke-width:1;');
416416 $plot->format['rave'] = array( 'style' => 'stroke:green; stroke-width:1;');
417 - $plot->title = wfMsgExt('ratinghistory-graph',array('parsemag'),$totalCount);
 417+ $plot->title = wfMsgExt('ratinghistory-graph',array('parsemag'),
 418+ $totalCount, wfMsgHtml("readerfeedback-$tag"), $this->page->getPrefixedText() );
418419 $plot->styleTitle = 'font-family: sans-serif; font-size: 10pt;';
419420 # Create the graph
420421 $plot->init();

Status & tagging log