diff --git a/i18n/en.json b/i18n/en.json index 9f74fb0..9eef776 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -37,6 +37,7 @@ "mobile-frontend-meta-data-issues": "Page issues", "mobile-frontend-meta-data-issues-categories": "About this category", "mobile-frontend-meta-data-issues-header": "Page issues", + "minerva-meta-data-issues-section-header": "Section issues", "mobile-frontend-meta-data-issues-header-talk": "About this page", "mobile-frontend-meta-data-issues-talk": "About this talk page", "mobile-frontend-notifications-filter": "Filter", diff --git a/i18n/qqq.json b/i18n/qqq.json index 0829b27..9766b70 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -46,6 +46,7 @@ "mobile-frontend-meta-data-issues": "Header of a collapsed section which, when tapped, displays some hidden content. The message is expected to generically state that the page could be better in some or several ways of unspecified nature, as reported by some or several cleanup/warning templates which this header hides. \n\nThe button, when clicked, opens an overlay with heading {{msg-mw|mobile-frontend-meta-data-issues-header}}", "mobile-frontend-meta-data-issues-categories": "Label to appear in button that opens issue overlay on categories.", "mobile-frontend-meta-data-issues-header": "Heading for overlay listing all cleanup templates\n{{Identical|Issue}}", + "minerva-meta-data-issues-section-header": "Heading for overlay listing all cleanup templates in a section \n{{Identical|Issue}}", "mobile-frontend-meta-data-issues-header-talk": "Heading for overlay listing all information boxes on talk pages.", "mobile-frontend-meta-data-issues-talk": "Label for a clickable button that when clicked reveals the content of metadata described in elements which carry the mbox class.", "mobile-frontend-notifications-filter": "Caption of the button on the notifications page that opens the filter panel", diff --git a/resources/skins.minerva.scripts/cleanuptemplates.js b/resources/skins.minerva.scripts/cleanuptemplates.js index 920579a..b0d1726 100644 --- a/resources/skins.minerva.scripts/cleanuptemplates.js +++ b/resources/skins.minerva.scripts/cleanuptemplates.js @@ -221,7 +221,10 @@ overlayManager.add( new RegExp( '^/issues/(\\d+|' + KEYWORD_ALL_SECTIONS + ')$' ), function ( section ) { return new CleanupOverlay( { issues: getIssues( section ), - headingText: headingText + // Note only the main namespace is expected to make use of section issues, so the heading will always be + // minerva-meta-data-issues-section-header regardless of namespace + headingText: section === '0' || section === KEYWORD_ALL_SECTIONS ? headingText : + mw.msg( 'minerva-meta-data-issues-section-header' ) } ); } ); } diff --git a/skin.json b/skin.json index cf76a47..6362f7f 100644 --- a/skin.json +++ b/skin.json @@ -361,6 +361,7 @@ "edithelp", "mobile-frontend-language-change", "mobile-frontend-meta-data-issues", + "minerva-meta-data-issues-section-header", "mobile-frontend-meta-data-issues-talk", "mobile-frontend-meta-data-issues-categories", "mobile-frontend-meta-data-issues-header",