Index: trunk/phase3/languages/messages/MessagesQqq.php |
— | — | @@ -2997,7 +2997,10 @@ |
2998 | 2998 | 'monthsall' => 'Used in a drop-down box on [[Special:Contributions]] as an option for "all months". See also [[MediaWiki:Month/{{SUBPAGENAME}}]]. |
2999 | 2999 | |
3000 | 3000 | {{Identical|All}}', |
| 3001 | +'limitall' => 'Used on [[Special:AllMessages]] (and potentially other TablePager based tables) to display "all" the messages. |
3001 | 3002 | |
| 3003 | +{{Identical|All}}', |
| 3004 | + |
3002 | 3005 | # E-mail address confirmation |
3003 | 3006 | 'confirmemail_needlogin' => 'Used on [[Special:ConfirmEmail]] when you are logged out. |
3004 | 3007 | * $1 is a link to [[Special:UserLogin]] with {{msg-mw|loginreqlink}} as link description', |
Index: trunk/phase3/languages/messages/MessagesZh_hans.php |
— | — | @@ -2993,6 +2993,7 @@ |
2994 | 2994 | 'watchlistall2' => '全部', |
2995 | 2995 | 'namespacesall' => '全部', |
2996 | 2996 | 'monthsall' => '全部', |
| 2997 | +'limitall' => '全部', |
2997 | 2998 | |
2998 | 2999 | # E-mail address confirmation |
2999 | 3000 | 'confirmemail' => '确认邮箱地址', |
Index: trunk/phase3/languages/messages/MessagesYue.php |
— | — | @@ -2956,6 +2956,7 @@ |
2957 | 2957 | 'watchlistall2' => '全部', |
2958 | 2958 | 'namespacesall' => '全部', |
2959 | 2959 | 'monthsall' => '全部', |
| 2960 | +'limitall' => '全部', |
2960 | 2961 | |
2961 | 2962 | # E-mail address confirmation |
2962 | 2963 | 'confirmemail' => '確認電郵地址', |
Index: trunk/phase3/languages/messages/MessagesZh_hant.php |
— | — | @@ -2981,6 +2981,7 @@ |
2982 | 2982 | 'watchlistall2' => '全部', |
2983 | 2983 | 'namespacesall' => '全部', |
2984 | 2984 | 'monthsall' => '全部', |
| 2985 | +'limitall' => '全部', |
2985 | 2986 | |
2986 | 2987 | # E-mail address confirmation |
2987 | 2988 | 'confirmemail' => '確認郵箱位址', |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -3814,6 +3814,7 @@ |
3815 | 3815 | 'watchlistall2' => 'all', |
3816 | 3816 | 'namespacesall' => 'all', |
3817 | 3817 | 'monthsall' => 'all', |
| 3818 | +'limitall' => 'all', |
3818 | 3819 | |
3819 | 3820 | # E-mail address confirmation |
3820 | 3821 | 'confirmemail' => 'Confirm e-mail address', |
Index: trunk/phase3/languages/messages/MessagesLzh.php |
— | — | @@ -2433,6 +2433,7 @@ |
2434 | 2434 | 'watchlistall2' => '全', |
2435 | 2435 | 'namespacesall' => '全', |
2436 | 2436 | 'monthsall' => '全', |
| 2437 | +'limitall' => '全', |
2437 | 2438 | |
2438 | 2439 | # E-mail address confirmation |
2439 | 2440 | 'confirmemail' => '核郵驛', |
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('limitall') ); |
139 | 144 | |
140 | 145 | global $wgLang, $wgContLang, $wgRequest; |
141 | 146 | |
Index: trunk/phase3/includes/Pager.php |
— | — | @@ -879,10 +879,18 @@ |
880 | 880 | function getLimitSelect() { |
881 | 881 | global $wgLang; |
882 | 882 | $s = "<select name=\"limit\">"; |
883 | | - foreach ( $this->mLimitsShown as $limit ) { |
884 | | - $selected = $limit == $this->mLimit ? 'selected="selected"' : ''; |
885 | | - $formattedLimit = $wgLang->formatNum( $limit ); |
886 | | - $s .= "<option value=\"$limit\" $selected>$formattedLimit</option>\n"; |
| 883 | + foreach ( $this->mLimitsShown as $key => $value ) { |
| 884 | + # The pair is either $index => $limit, in which case the $value |
| 885 | + # will be numeric, or $limit => $text, in which case the $value |
| 886 | + # will be a string. |
| 887 | + if( is_int( $value ) ){ |
| 888 | + $limit = $text = $value; |
| 889 | + } else { |
| 890 | + $limit = $key; |
| 891 | + $text = $value; |
| 892 | + } |
| 893 | + $selected = ( $limit == $this->mLimit ? 'selected="selected"' : '' ); |
| 894 | + $s .= "<option value=\"$limit\" $selected>$text</option>\n"; |
887 | 895 | } |
888 | 896 | $s .= "</select>"; |
889 | 897 | return $s; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -197,6 +197,8 @@ |
198 | 198 | * (bug 20404) Custom fields in the user creation form template can now have |
199 | 199 | detail labels in prefsectiontip divs. |
200 | 200 | * MakeSysop and MakeBot are now aliases for Special:UserRights |
| 201 | +* IndexPager->mLimitsShown can now be an associative array of limit => text-to- |
| 202 | + display-in-limit-form. |
201 | 203 | |
202 | 204 | === Bug fixes in 1.16 === |
203 | 205 | |
Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -2822,6 +2822,7 @@ |
2823 | 2823 | 'watchlistall2', |
2824 | 2824 | 'namespacesall', |
2825 | 2825 | 'monthsall', |
| 2826 | + 'limitall', |
2826 | 2827 | ), |
2827 | 2828 | 'confirmemail' => array( |
2828 | 2829 | 'confirmemail', |