r54811 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54810‎ | r54811 | r54812 >
Date:21:22, 11 August 2009
Author:catrope
Status:ok
Tags:
Comment:
PrefStats: Adding legend, six-hour-increment link
Modified paths:
  • /trunk/extensions/UsabilityInitiative/PrefStats/PrefStats.i18n.php (modified) (history)
  • /trunk/extensions/UsabilityInitiative/PrefStats/PrefStats.php (modified) (history)
  • /trunk/extensions/UsabilityInitiative/PrefStats/SpecialPrefStats.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/PrefStats/PrefStats.i18n.php
@@ -30,11 +30,14 @@
3131 'prefstats-xaxis' => 'Duration (hours)',
3232 'prefstats-factors' => 'View per: $1',
3333 'prefstats-factor-hour' => 'hour',
 34+ 'prefstats-factor-sixhours' => 'six hours',
3435 'prefstats-factor-day' => 'day',
3536 'prefstats-factor-week' => 'week',
3637 'prefstats-factor-twoweeks' => 'two weeks',
3738 'prefstats-factor-fourweeks' => 'four weeks',
3839 'prefstats-factor-default' => 'back to default scale',
 40+ 'prefstats-legend-out' => 'Opted out',
 41+ 'prefstats-legend-in' => 'Opted in',
3942 );
4043
4144 /** Message documentation (Message documentation)
Index: trunk/extensions/UsabilityInitiative/PrefStats/PrefStats.php
@@ -40,6 +40,7 @@
4141 // array( messagekey => factor )
4242 $wgPrefStatsTimeFactors = array(
4343 'prefstats-factor-hour' => 1,
 44+ 'prefstats-factor-sixhours' => 6,
4445 'prefstats-factor-day' => 24,
4546 'prefstats-factor-week' => 7*24,
4647 'prefstats-factor-twoweeks' => 2*7*24,
Index: trunk/extensions/UsabilityInitiative/PrefStats/SpecialPrefStats.php
@@ -97,7 +97,9 @@
9898 '|0:|' . implode( '|', array_keys( $stats[0] ) ),
9999 'chm' => 'N*f0zy*,000000,0,-1,11|N*f0zy*,000000,1,-1,11',
100100 'chco' => '4D89F9,C6D9FD',
101 - 'chbh' => 'a'
 101+ 'chbh' => 'a',
 102+ 'chdl' => wfMsg( 'prefstats-legend-out' ) . '|' .
 103+ wfMsg( 'prefstats-legend-in' )
102104 ) );
103105 }
104106

Follow-up revisions

RevisionCommit summaryAuthorDate
r54819Merge UsabilityInitiaitve fixes from trunk:...brion22:29, 11 August 2009

Status & tagging log