Index: trunk/phase3/includes/specials/SpecialAllmessages.php |
— | — | @@ -128,6 +128,7 @@ |
129 | 129 | |
130 | 130 | var $messages = null; |
131 | 131 | var $talkPages = null; |
| 132 | + public $mLimitsShown; |
132 | 133 | |
133 | 134 | function __construct( $page, $conds, $langObj = null ) { |
134 | 135 | parent::__construct(); |
— | — | @@ -135,6 +136,10 @@ |
136 | 137 | $this->mPage = $page; |
137 | 138 | $this->mConds = $conds; |
138 | 139 | $this->mDefaultDirection = true; // always sort ascending |
| 140 | + // We want to have an option for people to view *all* the messages, |
| 141 | + // so they can use Ctrl+F to search them. 5000 is the maximum that |
| 142 | + // will get through WebRequest::getLimitOffset(). |
| 143 | + $this->mLimitsShown = array( 20, 50, 100, 250, 500, 5000 => wfMsg('messagesall') ); |
139 | 144 | |
140 | 145 | global $wgLang, $wgContLang, $wgRequest; |
141 | 146 | |
Index: trunk/phase3/includes/Pager.php |
— | — | @@ -879,9 +879,9 @@ |
880 | 880 | function getLimitSelect() { |
881 | 881 | global $wgLang; |
882 | 882 | $s = "<select name=\"limit\">"; |
883 | | - foreach ( $this->mLimitsShown as $limit ) { |
| 883 | + foreach ( $this->mLimitsShown as $limit => $text ) { |
884 | 884 | $selected = $limit == $this->mLimit ? 'selected="selected"' : ''; |
885 | | - $formattedLimit = $wgLang->formatNum( $limit ); |
| 885 | + $formattedLimit = $text ? $text : $wgLang->formatNum( $limit ); |
886 | 886 | $s .= "<option value=\"$limit\" $selected>$formattedLimit</option>\n"; |
887 | 887 | } |
888 | 888 | $s .= "</select>"; |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -3814,6 +3814,7 @@ |
3815 | 3815 | 'watchlistall2' => 'all', |
3816 | 3816 | 'namespacesall' => 'all', |
3817 | 3817 | 'monthsall' => 'all', |
| 3818 | +'messagesall' => 'all', |
3818 | 3819 | |
3819 | 3820 | # E-mail address confirmation |
3820 | 3821 | 'confirmemail' => 'Confirm e-mail address', |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -160,6 +160,8 @@ |
161 | 161 | * (bug 9691) Add type (signup or login) parameter to AuthPlugin::ModifyUITemplate() |
162 | 162 | * (bug 14454) "Member of group(s)" in Special:Preferences causes language difficulties |
163 | 163 | * (bug 16697) Unicode combining characters are difficult to edit in some browsers |
| 164 | +* IndexPager->mLimitsShown can now be an associative array of limit => text-to- |
| 165 | + display-in-limit-form. |
164 | 166 | * Parser test supports uploading results to remote CodeReview instance |
165 | 167 | * (bug 20013) Added CSS class "mw-version-ext-version" is wrapped on the |
166 | 168 | extension version in Special:Version |