TemplateDialog: separate “Add template” messages

Use distinct messages for section heading, button label and input
aria-label, to allow a potentially better localization.

Bug: T304121
Change-Id: I3e3b06a035e2f11f5f32face789b934e22916e49
This commit is contained in:
Pols12 2022-12-21 01:59:13 +01:00 committed by thiemowmde
parent a8fc627f3c
commit afca7bf0af
4 changed files with 5 additions and 2 deletions

View file

@ -2209,6 +2209,7 @@
"visualeditor-dialog-transclusion-add-param-placeholder",
"visualeditor-dialog-transclusion-add-param-save",
"visualeditor-dialog-transclusion-add-template",
"visualeditor-dialog-transclusion-add-template-button",
"visualeditor-dialog-transclusion-add-template-save",
"visualeditor-dialog-transclusion-add-undocumented-param",
"visualeditor-dialog-transclusion-add-wikitext",

View file

@ -172,6 +172,7 @@
"visualeditor-dialog-transclusion-add-param-placeholder": "Parameter name",
"visualeditor-dialog-transclusion-add-param-save": "Add",
"visualeditor-dialog-transclusion-add-template": "Add template",
"visualeditor-dialog-transclusion-add-template-button": "Add template",
"visualeditor-dialog-transclusion-add-template-save": "Add",
"visualeditor-dialog-transclusion-add-undocumented-param": "Add undocumented parameter",
"visualeditor-dialog-transclusion-back-confirmation-prompt": "Go back to search? Your changes will be lost, and this cannot be undone.",

View file

@ -192,7 +192,8 @@
"visualeditor-dialog-transclusion-add-param-help": "Help text for new undocumented parameter input field.\n\nParameters:\n* $1 - The title of the template.",
"visualeditor-dialog-transclusion-add-param-placeholder": "Placeholder in the input field that adds a new undocumented parameter to a transcluded template.",
"visualeditor-dialog-transclusion-add-param-save": "Short label for save button that adds a new undocumented parameter to a transcluded template.",
"visualeditor-dialog-transclusion-add-template": "Heading to add the specified template to the page.",
"visualeditor-dialog-transclusion-add-template": "Heading of the section which allows to add another template to the page.",
"visualeditor-dialog-transclusion-add-template-button": "Extensive label for icon button that allows to add another template to the page. This is a title attribute, so it cannot contain any formatting.",
"visualeditor-dialog-transclusion-add-template-save": "Short label for button that adds the specified template to the page.",
"visualeditor-dialog-transclusion-add-undocumented-param": "Label for button that adds a new undocumented parameter to a transcluded template.",
"visualeditor-dialog-transclusion-back-confirmation-prompt": "Confirmation prompt for abandoning unsaved changes in an insert template dialog.",

View file

@ -23,7 +23,7 @@ ve.ui.MWTransclusionOutlineControlsWidget = function OoUiOutlineControlsWidget()
this.addTemplateButton = new OO.ui.ButtonWidget( {
framed: false,
icon: 'puzzle',
title: ve.msg( 'visualeditor-dialog-transclusion-add-template' )
title: ve.msg( 'visualeditor-dialog-transclusion-add-template-button' )
} );
this.addWikitextButton = new OO.ui.ButtonWidget( {
framed: false,