From: Moriel Schottlender Date: Mon, 10 Jul 2017 15:55:59 +0000 (-0500) Subject: RCFilters: Change legend heading for the beta feature X-Git-Tag: 1.31.0-rc.0~2746^2 X-Git-Url: http://git.cyclocoop.org//%22%22._DIR_PLUGIN_FULLCALENDAR.%22prive/themes/spip/images/event_edit.png/%22?a=commitdiff_plain;h=aa618786ca255694aeabde5767232a6cba5ff717;p=lhc%2Fweb%2Fwiklou.git RCFilters: Change legend heading for the beta feature Bug: T168043 Change-Id: Ide56598b160c93e1dfa8019c0e6e99fb377ea311 --- diff --git a/includes/specialpage/ChangesListSpecialPage.php b/includes/specialpage/ChangesListSpecialPage.php index 0be06461f4..8c4cc11834 100644 --- a/includes/specialpage/ChangesListSpecialPage.php +++ b/includes/specialpage/ChangesListSpecialPage.php @@ -1287,9 +1287,14 @@ abstract class ChangesListSpecialPage extends SpecialPage { $legend .= Html::closeElement( 'dl' ) . "\n"; # Collapsibility + $legendHeading = $this->getUser()->getOption( + 'rcenhancedfilters' + ) ? + $context->msg( 'rcfilters-legend-heading' )->parse() : + $context->msg( 'recentchanges-legend-heading' )->parse(); $legend = '
' . - $context->msg( 'recentchanges-legend-heading' )->parse() . + $legendHeading . '
' . $legend . '
' . '
'; diff --git a/languages/i18n/en.json b/languages/i18n/en.json index 9447de6622..0599dbcc73 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": "(±123)", "recentchanges-submit": "Show", + "rcfilters-legend-heading": "List of abbreviations:", "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 7c995f03de..e2857aadac 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]] and [[Special:Watchlist]] when RCFilters are enabled.", "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]]",