diff --git a/extension.json b/extension.json index 576f1cb3d..ea2061331 100644 --- a/extension.json +++ b/extension.json @@ -404,7 +404,8 @@ "echo-mark-all-as-read", "echo-learn-more", "mypreferences", - "echo-specialpage-section-markread" + "echo-specialpage-section-markread", + "echo-specialpage-pagefilterwidget-aria-label" ], "targets": [ "desktop", diff --git a/i18n/en.json b/i18n/en.json index 5c7997b72..fecf573b4 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -109,6 +109,7 @@ "echo-specialpage-section-markread": "Mark group as read", "echo-specialpage-markasread": "Notification: Mark as read", "echo-specialpage-markasread-invalid-id": "Invalid event ID", + "echo-specialpage-pagefilterwidget-aria-label": "Filter by wiki and page title", "echo-specialpage-pagination-numnotifications": "$1 {{PLURAL:$1|notification|notifications}}", "echo-specialpage-pagination-range": "$1 - $2", "echo-specialpage-pagefilters-title": "Recent activity", diff --git a/i18n/qqq.json b/i18n/qqq.json index 718990638..77e212fe3 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -111,6 +111,7 @@ "echo-specialpage-section-markread": "Label for the button to mark notifications in the given section as read in [[Special:Notifications]]", "echo-specialpage-markasread": "Special page title for Special:NotificationsMarkRead for marking specific notification as read.", "echo-specialpage-markasread-invalid-id": "Error message shown to users who try to mark a notification as read with an invalid event ID.", + "echo-specialpage-pagefilterwidget-aria-label": "Screen readers use this name to identify the recent activities (pages with unread notifications) wiki and pages grouped lists.", "echo-specialpage-pagination-numnotifications": "Label noting the number of notifications displayed in the page. This only appears if there is a single page of results.\n\nParameters:\n* $1 - Number of notifications in the page.\n{{Identical|Notification}}", "echo-specialpage-pagination-range": "Label noting the range of the notifications displayed in the page. This only appears if there are multiple pages of results available.\n\nParameters:\n* $1 - Number of the first item.\n* $2 - Number of the last item.", "echo-specialpage-pagefilters-title": "Title of the page filter box in Special:Notifications page.", diff --git a/modules/ui/mw.echo.ui.PageFilterWidget.js b/modules/ui/mw.echo.ui.PageFilterWidget.js index 697a1939c..3d7940eb1 100644 --- a/modules/ui/mw.echo.ui.PageFilterWidget.js +++ b/modules/ui/mw.echo.ui.PageFilterWidget.js @@ -43,7 +43,8 @@ // Initialization this.populateDataFromModel(); this.$element - .addClass( 'mw-echo-ui-pageFilterWidget' ); + .addClass( 'mw-echo-ui-pageFilterWidget' ) + .attr( 'aria-label', mw.message( 'echo-specialpage-pagefilterwidget-aria-label' ).text() ); }; /* Initialization */