Index: trunk/extensions/UsabilityInitiative/PrefStats/PrefStats.i18n.php |
— | — | @@ -30,11 +30,14 @@ |
31 | 31 | 'prefstats-xaxis' => 'Duration (hours)', |
32 | 32 | 'prefstats-factors' => 'View per: $1', |
33 | 33 | 'prefstats-factor-hour' => 'hour', |
| 34 | + 'prefstats-factor-sixhours' => 'six hours', |
34 | 35 | 'prefstats-factor-day' => 'day', |
35 | 36 | 'prefstats-factor-week' => 'week', |
36 | 37 | 'prefstats-factor-twoweeks' => 'two weeks', |
37 | 38 | 'prefstats-factor-fourweeks' => 'four weeks', |
38 | 39 | 'prefstats-factor-default' => 'back to default scale', |
| 40 | + 'prefstats-legend-out' => 'Opted out', |
| 41 | + 'prefstats-legend-in' => 'Opted in', |
39 | 42 | ); |
40 | 43 | |
41 | 44 | /** Message documentation (Message documentation) |
Index: trunk/extensions/UsabilityInitiative/PrefStats/PrefStats.php |
— | — | @@ -40,6 +40,7 @@ |
41 | 41 | // array( messagekey => factor ) |
42 | 42 | $wgPrefStatsTimeFactors = array( |
43 | 43 | 'prefstats-factor-hour' => 1, |
| 44 | + 'prefstats-factor-sixhours' => 6, |
44 | 45 | 'prefstats-factor-day' => 24, |
45 | 46 | 'prefstats-factor-week' => 7*24, |
46 | 47 | 'prefstats-factor-twoweeks' => 2*7*24, |
Index: trunk/extensions/UsabilityInitiative/PrefStats/SpecialPrefStats.php |
— | — | @@ -97,7 +97,9 @@ |
98 | 98 | '|0:|' . implode( '|', array_keys( $stats[0] ) ), |
99 | 99 | 'chm' => 'N*f0zy*,000000,0,-1,11|N*f0zy*,000000,1,-1,11', |
100 | 100 | 'chco' => '4D89F9,C6D9FD', |
101 | | - 'chbh' => 'a' |
| 101 | + 'chbh' => 'a', |
| 102 | + 'chdl' => wfMsg( 'prefstats-legend-out' ) . '|' . |
| 103 | + wfMsg( 'prefstats-legend-in' ) |
102 | 104 | ) ); |
103 | 105 | } |
104 | 106 | |