Merge "Section issues overlay has different heading"
This commit is contained in:
commit
6c981fa4f8
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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' )
|
||||
} );
|
||||
} );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue