Fix a regression from the preference rewrite: The help messages for maximum values...
authorRaimond Spekking <raymond@users.mediawiki.org>
Fri, 24 Jul 2009 08:09:17 +0000 (08:09 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Fri, 24 Jul 2009 08:09:17 +0000 (08:09 +0000)
Tweak 'en' messages: Remove () for consistency with other help messages

includes/Preferences.php
languages/messages/MessagesEn.php

index 80e4ebd..e81ed5b 100644 (file)
@@ -688,7 +688,7 @@ class Preferences {
        }
 
        static function rcPreferences( $user, &$defaultPreferences ) {
-               global $wgRCMaxAge, $wgUseRCPatrol;
+               global $wgRCMaxAge, $wgUseRCPatrol, $wgLang;
                ## RecentChanges #####################################
                $defaultPreferences['rcdays'] =
                                array(
@@ -697,6 +697,7 @@ class Preferences {
                                        '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(
@@ -754,6 +755,7 @@ class Preferences {
                                        'min' => 0,
                                        'max' => 7,
                                        'section' => 'watchlist/display',
+                                       'help' => wfMsgHtml( 'prefs-watchlist-days-max' ),
                                        'label-message' => 'prefs-watchlist-days',
                                );
                $defaultPreferences['wllimit'] =
@@ -762,7 +764,8 @@ class Preferences {
                                        'min' => 0,
                                        'max' => 1000,
                                        'label-message' => 'prefs-watchlist-edits',
-                                       'section' => 'watchlist/display'
+                                       'help' => wfMsgHtml( 'prefs-watchlist-edits-max' ),
+                                       'section' => 'watchlist/display',
                                );
                $defaultPreferences['extendwatchlist'] =
                                array(
index 7b6821a..8c41129 100644 (file)
@@ -1697,9 +1697,9 @@ Note that their indexes of {{SITENAME}} content may be out of date.',
 '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',
@@ -1718,7 +1718,7 @@ Note that their indexes of {{SITENAME}} content may be out of date.',
 '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.