* @param float $number a number
* @param array $trExtraParams
* @param string $descMsg
+ * @param string $descMsgParam
* @return string table row in HTML format
*/
- private function formatRow( $text, $number, $trExtraParams = array(), $descMsg = '' ) {
+ private function formatRow( $text, $number, $trExtraParams = array(), $descMsg = '', $descMsgParam = '' ) {
global $wgStylePath;
if( $descMsg ) {
- $descriptionText = wfMsg( $descMsg );
+ $descriptionText = wfMsgExt( $descMsg, array( 'parseinline' ), $descMsgParam );
if ( !wfEmptyMsg( $descMsg, $descriptionText ) ) {
$descriptionText = " ($descriptionText)";
$text .= "<br />" . Xml::element( 'small', array( 'class' => 'mw-statistic-desc'),
array( 'class' => 'mw-statistics-jobqueue' ) );
}
private function getUserStats() {
- global $wgLang;
+ global $wgLang, $wgRCMaxAge;
return Xml::openElement( 'tr' ) .
Xml::tags( 'th', array( 'colspan' => '2' ), wfMsg( 'statistics-header-users' ) ) .
Xml::closeElement( 'tr' ) .
$this->formatRow( wfMsgExt( 'statistics-users-active', array( 'parseinline' ) ),
$wgLang->formatNum( $this->activeUsers ),
array( 'class' => 'mw-statistics-users-active' ),
- 'statistics-users-active-desc' );
+ 'statistics-users-active-desc',
+ $wgLang->formatNum( ceil( $wgRCMaxAge / ( 3600 * 24 ) ) ) );
}
private function getGroupStats() {
global $wgGroupPermissions, $wgImplicitGroups, $wgLang, $wgUser;
'statistics-jobqueue' => '[http://www.mediawiki.org/wiki/Manual:Job_queue Job queue] length',
'statistics-users' => 'Registered [[Special:ListUsers|users]]',
'statistics-users-active' => 'Active users',
-'statistics-users-active-desc' => 'Users who have performed an action in the past month',
+'statistics-users-active-desc' => 'Users who have performed an action in the last {{PLURAL:$1|day|$1 days}}',
'statistics-mostpopular' => 'Most viewed pages',
'statistics-footer' => '', # do not translate or duplicate this message to other languages