Index: trunk/phase3/includes/specials/SpecialStatistics.php |
— | — | @@ -93,12 +93,13 @@ |
94 | 94 | * @param float $number a number |
95 | 95 | * @param array $trExtraParams |
96 | 96 | * @param string $descMsg |
| 97 | + * @param string $descMsgParam |
97 | 98 | * @return string table row in HTML format |
98 | 99 | */ |
99 | | - private function formatRow( $text, $number, $trExtraParams = array(), $descMsg = '' ) { |
| 100 | + private function formatRow( $text, $number, $trExtraParams = array(), $descMsg = '', $descMsgParam = '' ) { |
100 | 101 | global $wgStylePath; |
101 | 102 | if( $descMsg ) { |
102 | | - $descriptionText = wfMsg( $descMsg ); |
| 103 | + $descriptionText = wfMsgExt( $descMsg, array( 'parseinline' ), $descMsgParam ); |
103 | 104 | if ( !wfEmptyMsg( $descMsg, $descriptionText ) ) { |
104 | 105 | $descriptionText = " ($descriptionText)"; |
105 | 106 | $text .= "<br />" . Xml::element( 'small', array( 'class' => 'mw-statistic-desc'), |
— | — | @@ -148,7 +149,7 @@ |
149 | 150 | array( 'class' => 'mw-statistics-jobqueue' ) ); |
150 | 151 | } |
151 | 152 | private function getUserStats() { |
152 | | - global $wgLang; |
| 153 | + global $wgLang, $wgRCMaxAge; |
153 | 154 | return Xml::openElement( 'tr' ) . |
154 | 155 | Xml::tags( 'th', array( 'colspan' => '2' ), wfMsg( 'statistics-header-users' ) ) . |
155 | 156 | Xml::closeElement( 'tr' ) . |
— | — | @@ -158,7 +159,8 @@ |
159 | 160 | $this->formatRow( wfMsgExt( 'statistics-users-active', array( 'parseinline' ) ), |
160 | 161 | $wgLang->formatNum( $this->activeUsers ), |
161 | 162 | array( 'class' => 'mw-statistics-users-active' ), |
162 | | - 'statistics-users-active-desc' ); |
| 163 | + 'statistics-users-active-desc', |
| 164 | + $wgLang->formatNum( ceil( $wgRCMaxAge / ( 3600 * 24 ) ) ) ); |
163 | 165 | } |
164 | 166 | private function getGroupStats() { |
165 | 167 | global $wgGroupPermissions, $wgImplicitGroups, $wgLang, $wgUser; |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -2028,7 +2028,7 @@ |
2029 | 2029 | 'statistics-jobqueue' => '[http://www.mediawiki.org/wiki/Manual:Job_queue Job queue] length', |
2030 | 2030 | 'statistics-users' => 'Registered [[Special:ListUsers|users]]', |
2031 | 2031 | 'statistics-users-active' => 'Active users', |
2032 | | -'statistics-users-active-desc' => 'Users who have performed an action in the past month', |
| 2032 | +'statistics-users-active-desc' => 'Users who have performed an action in the last {{PLURAL:$1|day|$1 days}}', |
2033 | 2033 | 'statistics-mostpopular' => 'Most viewed pages', |
2034 | 2034 | 'statistics-footer' => '', # do not translate or duplicate this message to other languages |
2035 | 2035 | |