}
static function rcPreferences( $user, &$defaultPreferences ) {
- global $wgRCMaxAge, $wgUseRCPatrol;
+ global $wgRCMaxAge, $wgUseRCPatrol, $wgLang;
## RecentChanges #####################################
$defaultPreferences['rcdays'] =
array(
'section' => 'rc/display',
'min' => 1,
'max' => ceil( $wgRCMaxAge / ( 3600*24 ) ),
+ 'help' => wfMsgExt( 'recentchangesdays-max', array( 'parsemag' ), $wgLang->formatNum( ceil( $wgRCMaxAge / ( 3600*24 ) ) ) ),
);
$defaultPreferences['rclimit'] =
array(
'min' => 0,
'max' => 7,
'section' => 'watchlist/display',
+ 'help' => wfMsgHtml( 'prefs-watchlist-days-max' ),
'label-message' => 'prefs-watchlist-days',
);
$defaultPreferences['wllimit'] =
'min' => 0,
'max' => 1000,
'label-message' => 'prefs-watchlist-edits',
- 'section' => 'watchlist/display'
+ 'help' => wfMsgHtml( 'prefs-watchlist-edits-max' ),
+ 'section' => 'watchlist/display',
);
$defaultPreferences['extendwatchlist'] =
array(
'prefs-rc' => 'Recent changes',
'prefs-watchlist' => 'Watchlist',
'prefs-watchlist-days' => 'Days to show in watchlist:',
-'prefs-watchlist-days-max' => '(maximum 7 days)',
+'prefs-watchlist-days-max' => 'Maximum 7 days',
'prefs-watchlist-edits' => 'Maximum number of changes to show in expanded watchlist:',
-'prefs-watchlist-edits-max' => '(maximum number: 1000)',
+'prefs-watchlist-edits-max' => 'Maximum number: 1000',
'prefs-watchlist-token' => 'Watchlist token',
'prefs-misc' => 'Misc',
'prefs-resetpass' => 'Change password',
'contextchars' => 'Context per line:',
'stub-threshold' => 'Threshold for <a href="#" class="stub">stub link</a> formatting (bytes):',
'recentchangesdays' => 'Days to show in recent changes:',
-'recentchangesdays-max' => '(maximum $1 {{PLURAL:$1|day|days}})',
+'recentchangesdays-max' => 'Maximum $1 {{PLURAL:$1|day|days}}',
'recentchangescount' => 'Number of edits to show by default:',
'prefs-help-recentchangescount' => 'This includes recent changes, page histories, and logs.',
'prefs-help-watchlist-token' => "Filling in this field with a secret key will generate an RSS feed for your watchlist.