Move New Filters opt-out preference to own section
authorpetarpetkovic <ppetkovic@wikimedia.org>
Mon, 18 Sep 2017 14:23:25 +0000 (16:23 +0200)
committerpetarpetkovic <ppetkovic@wikimedia.org>
Mon, 18 Sep 2017 14:23:25 +0000 (16:23 +0200)
- Add a new section to preference page with the following title:
"Opt out of improvements".
- Move the opt-out option and explanatory text to this new section.

Bug: T175765
Change-Id: Iaf77df2eec714777f54b95b58eb617b5e35bef75

includes/Preferences.php
languages/i18n/en.json
languages/i18n/qqq.json

index dfc2475..a7e6684 100644 (file)
@@ -974,7 +974,7 @@ class Preferences {
                if ( $config->get( 'StructuredChangeFiltersShowPreference' ) ) {
                        $defaultPreferences['rcenhancedfilters-disable'] = [
                                'type' => 'toggle',
-                               'section' => 'rc/advancedrc',
+                               'section' => 'rc/opt-out',
                                'label-message' => 'rcfilters-preference-label',
                                'help-message' => 'rcfilters-preference-help',
                        ];
index 75e0c5c..47e6205 100644 (file)
        "prefs-editor": "Editor",
        "prefs-preview": "Preview",
        "prefs-advancedrc": "Advanced options",
+       "prefs-opt-out": "Opt out of improvements",
        "prefs-advancedrendering": "Advanced options",
        "prefs-advancedsearchoptions": "Advanced options",
        "prefs-advancedwatchlist": "Advanced options",
index 8ec53bf..0a6e91b 100644 (file)
        "prefs-editor": "Used in [[Special:Preferences]], tab \"Editing\" ({{int:prefs-editing}}).\n\n{{Identical|Editor}}",
        "prefs-preview": "Used in [[Special:Preferences]], tab \"Editing\".\n{{Identical|Preview}}",
        "prefs-advancedrc": "Used in [[Special:Preferences]], tab \"Recent changes\".\n{{Identical|Advanced options}}",
+       "prefs-opt-out": "Used in [[Special:Preferences]], tab \"Recent changes\".",
        "prefs-advancedrendering": "Used in [[Special:Preferences]], tab \"Appearence\".\n{{Identical|Advanced options}}",
        "prefs-advancedsearchoptions": "Used in [[Special:Preferences]], tab \"Search options\".\n{{Identical|Advanced options}}",
        "prefs-advancedwatchlist": "Used in [[Special:Preferences]], tab \"Watchlist\".\n{{Identical|Advanced options}}",