Mooeypoo has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/364232 )
Change subject: RCFilters: Change legend heading for the beta feature
......................................................................
RCFilters: Change legend heading for the beta feature
Bug: T168043
Change-Id: Ide56598b160c93e1dfa8019c0e6e99fb377ea311
---
M includes/specialpage/ChangesListSpecialPage.php
M languages/i18n/en.json
M languages/i18n/qqq.json
M resources/Resources.php
4 files changed, 9 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/32/364232/1
diff --git a/includes/specialpage/ChangesListSpecialPage.php
b/includes/specialpage/ChangesListSpecialPage.php
index 0be0646..8c4cc11 100644
--- a/includes/specialpage/ChangesListSpecialPage.php
+++ b/includes/specialpage/ChangesListSpecialPage.php
@@ -1287,9 +1287,14 @@
$legend .= Html::closeElement( 'dl' ) . "\n";
# Collapsibility
+ $legendHeading = $this->getUser()->getOption(
+ 'rcenhancedfilters'
+ ) ?
+ $context->msg( 'rcfilters-legend-heading' )->parse() :
+ $context->msg( 'recentchanges-legend-heading'
)->parse();
$legend =
'<div class="mw-changeslist-legend">' .
- $context->msg( 'recentchanges-legend-heading'
)->parse() .
+ $legendHeading .
'<div class="mw-collapsible-content">' .
$legend . '</div>' .
'</div>';
diff --git a/languages/i18n/en.json b/languages/i18n/en.json
index 9447de6..0599dbc 100644
--- a/languages/i18n/en.json
+++ b/languages/i18n/en.json
@@ -1349,6 +1349,7 @@
"recentchanges-legend-unpatrolled":
"{{int:recentchanges-label-unpatrolled}}",
"recentchanges-legend-plusminus": "(<em>±123</em>)",
"recentchanges-submit": "Show",
+ "rcfilters-legend-heading": "<strong>List of abbreviations:</strong>",
"rcfilters-activefilters": "Active filters",
"rcfilters-advancedfilters": "Advanced filters",
"rcfilters-quickfilters": "Saved filters",
diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json
index 7c995f0..a316e06 100644
--- a/languages/i18n/qqq.json
+++ b/languages/i18n/qqq.json
@@ -1539,6 +1539,7 @@
"recentchanges-legend-unpatrolled": "Used as legend on
[[Special:RecentChanges]] and [[Special:Watchlist]].\n\nRefers to
{{msg-mw|Recentchanges-label-unpatrolled}}.",
"recentchanges-legend-plusminus": "{{optional}}\nA plus/minus sign with
a number for the legend.",
"recentchanges-submit": "Label for submit button in
[[Special:RecentChanges]]\n{{Identical|Show}}",
+ "rcfilters-legend-heading": "Used as a heading for legend box on
[[Special:RecentChanges]] with RCFilters and
[[Special:Watchlist]].\n{{Identical|Legend}}",
"rcfilters-activefilters": "Title for the filters selection showing the
active filters.",
"rcfilters-advancedfilters": "Title for the buttons allowing the user
to switch to the various advanced filters views.",
"rcfilters-quickfilters": "Label for the button that opens the saved
filter settings menu in [[Special:RecentChanges]]",
diff --git a/resources/Resources.php b/resources/Resources.php
index a8cf91d..432322c 100644
--- a/resources/Resources.php
+++ b/resources/Resources.php
@@ -1823,6 +1823,7 @@
],
],
'messages' => [
+ 'rcfilters-legend-heading',
'rcfilters-activefilters',
'rcfilters-advancedfilters',
'rcfilters-quickfilters',
--
To view, visit https://gerrit.wikimedia.org/r/364232
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ide56598b160c93e1dfa8019c0e6e99fb377ea311
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Mooeypoo <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits