Ladsgroup has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/361298 )

Change subject: Move all of ORES preferences to a dedicated tab
......................................................................

Move all of ORES preferences to a dedicated tab

Bug: T167910
Change-Id: I4d272c6a738c5a9f129750ace337fee9c14f790f
---
M i18n/en.json
M i18n/qqq.json
M includes/Hooks/PreferencesHookHandler.php
3 files changed, 12 insertions(+), 10 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ORES 
refs/changes/98/361298/1

diff --git a/i18n/en.json b/i18n/en.json
index b446833..2040a91 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -11,7 +11,7 @@
        "ores-damaging-legend": "This edit may have problems and should be 
reviewed ([[:mw:Special:MyLanguage/ORES review tool|more info]])",
        "ores-hide-nondamaging-filter": "Hide probably good edits",
        "ores-pref-damaging": "Prediction threshold",
-       "ores-pref-damaging-flag": "Highlight likely problem edits with colors 
and an \"{{int:ores-damaging-letter}}\" for \"needs review\" (to set the level 
at which edits are marked, use the \"{{int:ores-pref-damaging}}\" setting in 
the Watchlist preferences)",
+       "ores-pref-damaging-flag": "Highlight likely problematic edits with 
colors",
        "ores-damaging-maybebad": "May have problems (flags most problem edits 
but includes many false positives)",
        "ores-damaging-likelybad": "Likely have problems (medium probability)",
        "ores-damaging-verylikelybad": "Very likely have problems (flags few 
false positives but finds a smaller % of problem edits)",
@@ -43,10 +43,11 @@
        "ores-rcfilters-goodfaith-bad-desc": "With medium accuracy, finds more 
bad-faith edits than the \"Very likely\" filter but fewer than \"May.\"",
        "ores-rcfilters-goodfaith-verylikelybad-label": "Very likely bad faith",
        "ores-rcfilters-goodfaith-verylikelybad-desc": "Highly accurate at 
finding the most obvious bad faith edits.",
-       "ores-pref-highlight": "Highlight likely problem edits with colors and 
an \"{{int:ores-damaging-letter}}\" for \"needs review\"",
-       "ores-pref-rc-hidenondamaging": "Show only likely problem edits (and 
hide probably good edits)",
-       "ores-pref-watchlist-hidenondamaging": "Show only likely problem edits 
(and hide probably good edits)",
-       "prefs-ores" : "Revision scoring",
+       "ores-pref-highlight": "Add an \"{{int:ores-damaging-letter}}\" for 
\"needs review\" for likely problematic edits",
+       "ores-pref-rc-hidenondamaging": "Show only likely problem edits in 
recent changes (and hide probably good edits)",
+       "ores-pref-watchlist-hidenondamaging": "Show only likely problem edits 
in watchlist (and hide probably good edits)",
+       "prefs-ores" : "ORES",
+       "prefs-editreview" : "Edit patrolling",
        "apihelp-query+ores-description": "Return ORES configuration and model 
data for this wiki.",
        "apihelp-query+ores-summary": "Return ORES configuration and model data 
for this wiki.",
        "apihelp-query+ores-example-simple": "Fetch ORES data:",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 570ef30..9b7c356 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -52,7 +52,8 @@
        "ores-pref-highlight": "Display message for user preference to enable 
highlighting of damaging edits.",
        "ores-pref-rc-hidenondamaging": "Display message for user preferences 
to make hidenondamaging default in recent changes",
        "ores-pref-watchlist-hidenondamaging": "Display message for user 
preferences to make hidenondamaging default in the watchlist",
-       "prefs-ores": "Name of ORES section in preferences",
+       "prefs-ores": "Name of ORES tab in preferences",
+       "prefs-editreview" : "Name of the section for edit review in ORES",
        "apihelp-query+ores-description": 
"{{doc-apihelp-description|query+ores}}",
        "apihelp-query+ores-summary": "{{doc-apihelp-summary|query+ores}}",
        "apihelp-query+ores-example-simple": 
"{{doc-apihelp-example|query+ores}}",
diff --git a/includes/Hooks/PreferencesHookHandler.php 
b/includes/Hooks/PreferencesHookHandler.php
index 3723f65..8d8a330 100644
--- a/includes/Hooks/PreferencesHookHandler.php
+++ b/includes/Hooks/PreferencesHookHandler.php
@@ -36,7 +36,7 @@
                                $options[ $text ] = $prefName;
                        }
                }
-               $oresSection = $wgOresExtensionStatus === 'beta' ? 'rc/ores' : 
'watchlist/ores';
+               $oresSection = 'ores/editreview';
                $preferences['oresDamagingPref'] = [
                        'type' => 'select',
                        'label-message' => 'ores-pref-damaging',
@@ -56,7 +56,7 @@
                        // Control whether the "r" appears on RC
                        $preferences['ores-damaging-flag-rc'] = [
                                'type' => 'toggle',
-                               'section' => 'rc/advancedrc',
+                               'section' => $oresSection,
                                'label-message' => 'ores-pref-damaging-flag',
                        ];
                }
@@ -64,12 +64,12 @@
                // Make hidenondamaging default
                $preferences['oresWatchlistHideNonDamaging'] = [
                        'type' => 'toggle',
-                       'section' => 'watchlist/ores',
+                       'section' => $oresSection,
                        'label-message' => 
'ores-pref-watchlist-hidenondamaging',
                ];
                $preferences['oresRCHideNonDamaging'] = [
                        'type' => 'toggle',
-                       'section' => 'rc/advancedrc',
+                       'section' => $oresSection,
                        'label-message' => 'ores-pref-rc-hidenondamaging',
                ];
                // Hide RC prefs if enhanced filters are enabled

-- 
To view, visit https://gerrit.wikimedia.org/r/361298
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4d272c6a738c5a9f129750ace337fee9c14f790f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ORES
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to