From c343f8dedda6f2daec530a64eec5c91956fd4d52 Mon Sep 17 00:00:00 2001 From: Platonides Date: Tue, 3 Aug 2010 22:13:16 +0000 Subject: [PATCH] Use Disabled for the value 0 of stub threshold since there seems to be some confusion on how to disable it. --- includes/Preferences.php | 4 ++-- languages/messages/MessagesEn.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/Preferences.php b/includes/Preferences.php index 60ba20f191..cbef6f4147 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -583,8 +583,8 @@ class Preferences { ); } - $stubThresholdValues = array( 0, 50, 100, 500, 1000, 2000, 5000, 10000 ); - $stubThresholdOptions = array(); + $stubThresholdValues = array( 50, 100, 500, 1000, 2000, 5000, 10000 ); + $stubThresholdOptions = array( wfMsg( 'stub-threshold-disabled' ) => 0 ); foreach ( $stubThresholdValues as $value ) { $stubThresholdOptions[wfMsg( 'size-bytes', $value )] = $value; } diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 5df4fe543f..26c04e85ef 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -1751,6 +1751,7 @@ Note that their indexes of {{SITENAME}} content may be out of date.', 'contextlines' => 'Lines per hit:', 'contextchars' => 'Context per line:', 'stub-threshold' => 'Threshold for stub link formatting (bytes):', +'stub-threshold-disabled' => 'Disabled', 'recentchangesdays' => 'Days to show in recent changes:', 'recentchangesdays-max' => 'Maximum $1 {{PLURAL:$1|day|days}}', 'recentchangescount' => 'Number of edits to show by default:', -- 2.20.1