* (bug 20404) Custom fields in the user creation form template can now have
detail labels in prefsectiontip divs.
* MakeSysop and MakeBot are now aliases for Special:UserRights
+* IndexPager->mLimitsShown can now be an associative array of limit => text-to-
+ display-in-limit-form.
=== Bug fixes in 1.16 ===
function getLimitSelect() {
global $wgLang;
$s = "<select name=\"limit\">";
- foreach ( $this->mLimitsShown as $limit ) {
- $selected = $limit == $this->mLimit ? 'selected="selected"' : '';
- $formattedLimit = $wgLang->formatNum( $limit );
- $s .= "<option value=\"$limit\" $selected>$formattedLimit</option>\n";
+ foreach ( $this->mLimitsShown as $key => $value ) {
+ # The pair is either $index => $limit, in which case the $value
+ # will be numeric, or $limit => $text, in which case the $value
+ # will be a string.
+ if( is_int( $value ) ){
+ $limit = $text = $value;
+ } else {
+ $limit = $key;
+ $text = $value;
+ }
+ $selected = ( $limit == $this->mLimit ? 'selected="selected"' : '' );
+ $s .= "<option value=\"$limit\" $selected>$text</option>\n";
}
$s .= "</select>";
return $s;
var $messages = null;
var $talkPages = null;
+ public $mLimitsShown;
function __construct( $page, $conds, $langObj = null ) {
parent::__construct();
$this->mPage = $page;
$this->mConds = $conds;
$this->mDefaultDirection = true; // always sort ascending
+ // We want to have an option for people to view *all* the messages,
+ // so they can use Ctrl+F to search them. 5000 is the maximum that
+ // will get through WebRequest::getLimitOffset().
+ $this->mLimitsShown = array( 20, 50, 100, 250, 500, 5000 => wfMsg('limitall') );
global $wgLang, $wgContLang, $wgRequest;
'watchlistall2' => 'all',
'namespacesall' => 'all',
'monthsall' => 'all',
+'limitall' => 'all',
# E-mail address confirmation
'confirmemail' => 'Confirm e-mail address',
'watchlistall2' => '全',
'namespacesall' => '全',
'monthsall' => '全',
+'limitall' => '全',
# E-mail address confirmation
'confirmemail' => '核郵驛',
{{Identical|All}}',
'monthsall' => 'Used in a drop-down box on [[Special:Contributions]] as an option for "all months". See also [[MediaWiki:Month/{{SUBPAGENAME}}]].
+{{Identical|All}}',
+'limitall' => 'Used on [[Special:AllMessages]] (and potentially other TablePager based tables) to display "all" the messages.
+
{{Identical|All}}',
# E-mail address confirmation
'watchlistall2' => '全部',
'namespacesall' => '全部',
'monthsall' => '全部',
+'limitall' => '全部',
# E-mail address confirmation
'confirmemail' => '確認電郵地址',
'watchlistall2' => '全部',
'namespacesall' => '全部',
'monthsall' => '全部',
+'limitall' => '全部',
# E-mail address confirmation
'confirmemail' => '确认邮箱地址',
'watchlistall2' => '全部',
'namespacesall' => '全部',
'monthsall' => '全部',
+'limitall' => '全部',
# E-mail address confirmation
'confirmemail' => '確認郵箱位址',
'watchlistall2',
'namespacesall',
'monthsall',
+ 'limitall',
),
'confirmemail' => array(
'confirmemail',