Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -849,15 +849,18 @@ |
850 | 850 | * @param $defaultPreferences |
851 | 851 | */ |
852 | 852 | static function watchlistPreferences( $user, IContextSource $context, &$defaultPreferences ) { |
853 | | - global $wgUseRCPatrol, $wgEnableAPI; |
| 853 | + global $wgUseRCPatrol, $wgEnableAPI, $wgRCMaxAge; |
854 | 854 | |
| 855 | + $watchlistdaysMax = ceil( $wgRCMaxAge / ( 3600 * 24 ) ); |
| 856 | + |
855 | 857 | ## Watchlist ##################################### |
856 | 858 | $defaultPreferences['watchlistdays'] = array( |
857 | 859 | 'type' => 'float', |
858 | 860 | 'min' => 0, |
859 | | - 'max' => 7, |
| 861 | + 'max' => $watchlistdaysMax, |
860 | 862 | 'section' => 'watchlist/displaywatchlist', |
861 | | - 'help' => $context->msg( 'prefs-watchlist-days-max' )->escaped(), |
| 863 | + 'help' => $context->msg( 'prefs-watchlist-days-max' )->numParams( |
| 864 | + $watchlistdaysMax )->text(), |
862 | 865 | 'label-message' => 'prefs-watchlist-days', |
863 | 866 | ); |
864 | 867 | $defaultPreferences['wllimit'] = array( |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -1767,7 +1767,7 @@ |
1768 | 1768 | 'prefs-rc' => 'Recent changes', |
1769 | 1769 | 'prefs-watchlist' => 'Watchlist', |
1770 | 1770 | 'prefs-watchlist-days' => 'Days to show in watchlist:', |
1771 | | -'prefs-watchlist-days-max' => 'Maximum 7 days', |
| 1771 | +'prefs-watchlist-days-max' => 'Maximum $1 {{PLURAL:$1|day|days}}', |
1772 | 1772 | 'prefs-watchlist-edits' => 'Maximum number of changes to show in expanded watchlist:', |
1773 | 1773 | 'prefs-watchlist-edits-max' => 'Maximum number: 1000', |
1774 | 1774 | 'prefs-watchlist-token' => 'Watchlist token:', |