mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 00:00:49 +00:00
Merge "Add title to sidebar search"
This commit is contained in:
commit
9a0d34aeae
|
@ -2233,6 +2233,7 @@
|
|||
"visualeditor-dialog-transclusion-feedback-message",
|
||||
"visualeditor-dialog-transclusion-filter-no-match",
|
||||
"visualeditor-dialog-transclusion-filter-placeholder",
|
||||
"visualeditor-dialog-transclusion-filter-title",
|
||||
"visualeditor-dialog-transclusion-loading",
|
||||
"visualeditor-dialog-transclusion-more-template-description",
|
||||
"visualeditor-dialog-transclusion-multipart-message",
|
||||
|
|
|
@ -195,6 +195,7 @@
|
|||
"visualeditor-dialog-transclusion-contextitem-description": "Generated from: $1",
|
||||
"visualeditor-dialog-transclusion-expand-options": "Show options",
|
||||
"visualeditor-dialog-transclusion-filter-placeholder": "Find field",
|
||||
"visualeditor-dialog-transclusion-filter-title": "Parameter search for $1",
|
||||
"visualeditor-dialog-transclusion-filter-no-match": "No matches found",
|
||||
"visualeditor-dialog-transclusion-deprecated-parameter": "Deprecated field",
|
||||
"visualeditor-dialog-transclusion-deprecated-parameter-description": "Field is deprecated. $1",
|
||||
|
|
|
@ -213,6 +213,7 @@
|
|||
"visualeditor-dialog-transclusion-contextitem-description": "Message shown to an editor when they click on a template or group of templates that form a transclusion, listing the template(s) from which the transclusion is constructed.\n\n* $1 – the name of the template, or a list of the names of the templates if there are multiple.\n* $2 - number of templates for PLURAL support.",
|
||||
"visualeditor-dialog-transclusion-expand-options": "Label for button that shows advanced options in transclusion dialog",
|
||||
"visualeditor-dialog-transclusion-filter-placeholder": "Placeholder for template parameter search field.",
|
||||
"visualeditor-dialog-transclusion-filter-title": "Title for the template parameter search field.\n\nParameters:\n* $1 - The title of the related template.",
|
||||
"visualeditor-dialog-transclusion-filter-no-match": "Message when there are no matching parameters found in the parameter search field.",
|
||||
"visualeditor-dialog-transclusion-deprecated-parameter": "Tooltip for deprecated parameter indicator",
|
||||
"visualeditor-dialog-transclusion-deprecated-parameter-description": "Label describing that a parameter is deprecated.\n\nParameters:\n* $1 - Description given in TemplateData for why parameter is deprecated, which may be empty.",
|
||||
|
|
|
@ -37,11 +37,14 @@ ve.ui.MWTransclusionOutlineTemplateWidget = function VeUiMWTransclusionOutlineTe
|
|||
} );
|
||||
|
||||
this.searchWidget = new OO.ui.SearchInputWidget( {
|
||||
title: ve.msg( 'visualeditor-dialog-transclusion-filter-title', spec.getLabel() ),
|
||||
placeholder: ve.msg( 'visualeditor-dialog-transclusion-filter-placeholder' ),
|
||||
classes: [ 've-ui-mwTransclusionOutlineTemplateWidget-searchWidget' ]
|
||||
} ).connect( this, {
|
||||
change: 'filterParameters'
|
||||
} ).toggle( parameterNames.length );
|
||||
this.searchWidget.$element.attr( 'role', 'search' );
|
||||
|
||||
this.infoWidget = new OO.ui.LabelWidget( {
|
||||
label: ve.msg( 'visualeditor-dialog-transclusion-filter-no-match' ),
|
||||
classes: [ 've-ui-mwTransclusionOutlineTemplateWidget-no-match' ]
|
||||
|
|
Loading…
Reference in a new issue