Index: trunk/extensions/ArticleFeedback/SpecialArticleFeedback.php |
— | — | @@ -30,10 +30,10 @@ |
31 | 31 | $lows = $this->getDailyLows( $highs_lows ); |
32 | 32 | |
33 | 33 | //render daily highs table |
34 | | - $this->renderDailyHighsAndLows( $highs, wfMsg( 'articleFeedback-table-caption-dailyhighs' )); |
| 34 | + $this->renderDailyHighsAndLows( $highs, wfMsg( 'articleFeedback-table-caption-dailyhighs', date( 'Y-m-d' ))); |
35 | 35 | |
36 | 36 | //render daily lows table |
37 | | - $this->renderDailyHighsAndLows( $lows, wfMsg( 'articleFeedback-table-caption-dailylows' )); |
| 37 | + $this->renderDailyHighsAndLows( $lows, wfMsg( 'articleFeedback-table-caption-dailylows', date( 'Y-m-d' ))); |
38 | 38 | |
39 | 39 | /* |
40 | 40 | This functionality does not exist yet. |
— | — | @@ -300,7 +300,9 @@ |
301 | 301 | * |
302 | 302 | * @see getDailyHighs() However, if we are dealing with an odd number of |
303 | 303 | * ratings, round up and then subtract 1 since we are giving preference |
304 | | - * to the 'highs' when dealing with an odd number of ratings. |
| 304 | + * to the 'highs' when dealing with an odd number of ratings. We do this |
| 305 | + * rather than rely on PHP's rounding 'modes' for compaitibility with |
| 306 | + * PHP < 5.3 |
305 | 307 | * @param array Pre-orderd from lowest to highest |
306 | 308 | * @return array Containing the... lowest rated article data |
307 | 309 | */ |
Index: trunk/extensions/ArticleFeedback/ArticleFeedback.i18n.php |
— | — | @@ -6,9 +6,10 @@ |
7 | 7 | * @author Sam Reed |
8 | 8 | * @author Brandon Harris |
9 | 9 | * @author Trevor Parscal |
| 10 | + * @author Arthur Richards |
10 | 11 | */ |
11 | 12 | $messages['en'] = array( |
12 | | - 'articlefeedback' => 'Article feedback', |
| 13 | + 'articlefeedback' => 'Article feedbadk dashboard', |
13 | 14 | 'articlefeedback-desc' => 'Article feedback', |
14 | 15 | /* ArticleFeedback survey */ |
15 | 16 | 'articlefeedback-survey-question-origin' => 'What page were you on when you started this survey?', |
— | — | @@ -76,8 +77,8 @@ |
77 | 78 | Please try again later.', |
78 | 79 | /* Special:ArticleFeedback */ |
79 | 80 | 'articleFeedback-table-caption-dailyhighsandlows' => 'Today\'s highs and lows', |
80 | | - 'articleFeedback-table-caption-dailyhighs' => 'Today\'s highs', |
81 | | - 'articleFeedback-table-caption-dailylows' => 'Today\'s lows', |
| 81 | + 'articleFeedback-table-caption-dailyhighs' => 'Articles with highest ratings: $1', |
| 82 | + 'articleFeedback-table-caption-dailylows' => 'Articles with lowest ratings: $1', |
82 | 83 | 'articleFeedback-table-caption-weeklymostchanged' => 'This week\'s most changed', |
83 | 84 | 'articleFeedback-table-caption-recentlows' => 'Recent lows', |
84 | 85 | 'articleFeedback-table-heading-page' => 'Page', |