Merge "Section issues overlay has different heading"

This commit is contained in:
jenkins-bot 2018-07-13 12:46:20 +00:00 committed by Gerrit Code Review
commit 6c981fa4f8
4 changed files with 7 additions and 1 deletions

View File

@ -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",

View File

@ -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",

View File

@ -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' )
} );
} );
}

View File

@ -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",