diff --git a/extension.json b/extension.json index 2221b57690..9dd2b18d7b 100644 --- a/extension.json +++ b/extension.json @@ -997,6 +997,7 @@ "visualeditor-editsummary", "visualeditor-editsummary-bytes-remaining", "visualeditor-feedback-tool", + "visualeditor-feedback-defaultmessage", "visualeditor-help-label", "visualeditor-help-link", "visualeditor-help-title", diff --git a/modules/ve-mw/i18n/en.json b/modules/ve-mw/i18n/en.json index 5c90bcc3a7..1725c0010a 100644 --- a/modules/ve-mw/i18n/en.json +++ b/modules/ve-mw/i18n/en.json @@ -235,6 +235,7 @@ "visualeditor-editnotices-tooltip": "Edit notices", "visualeditor-editsummary": "Describe what you changed", "visualeditor-editsummary-bytes-remaining": "The number of bytes remaining", + "visualeditor-feedback-defaultmessage": "URL: $1", "visualeditor-formatdropdown-format-mw-heading1": "Page title", "visualeditor-formatdropdown-format-mw-heading2": "Heading", "visualeditor-formatdropdown-format-mw-heading3": "Sub-heading 1", diff --git a/modules/ve-mw/i18n/qqq.json b/modules/ve-mw/i18n/qqq.json index 0231e1e508..d9922472dc 100644 --- a/modules/ve-mw/i18n/qqq.json +++ b/modules/ve-mw/i18n/qqq.json @@ -244,6 +244,7 @@ "visualeditor-editnotices-tooltip": "Text of tooltip for the tool in the toolbar that shows edit notices (i.e. “messages about the editing”), e.g. the “you are not currently logged in” notice", "visualeditor-editsummary": "Label for the edit summary box", "visualeditor-editsummary-bytes-remaining": "Tooltip for the number of bytes remaining in the edit summary", + "visualeditor-feedback-defaultmessage": "Default message text for the feedback dialog.\nParameters:\n\n* $1 - URL of the page", "visualeditor-formatdropdown-format-mw-heading1": "Item in the MediaWiki formatting dropdown for a level 1 heading (page title).\n{{Related|Visualeditor-formatdropdown}}\n{{Identical|Page title}}", "visualeditor-formatdropdown-format-mw-heading2": "Item in the MediaWiki formatting dropdown for a level 2 heading (section).\n{{Related|Visualeditor-formatdropdown}}\n{{Identical|Heading}}", "visualeditor-formatdropdown-format-mw-heading3": "Item in the MediaWiki formatting dropdown for a level 3 heading (sub-section)\n{{Related|Visualeditor-formatdropdown}}", diff --git a/modules/ve-mw/ui/tools/ve.ui.MWPopupTool.js b/modules/ve-mw/ui/tools/ve.ui.MWPopupTool.js index 4f686a82a4..cbb5a30338 100644 --- a/modules/ve-mw/ui/tools/ve.ui.MWPopupTool.js +++ b/modules/ve-mw/ui/tools/ve.ui.MWPopupTool.js @@ -212,7 +212,9 @@ ve.ui.MWHelpPopupTool.prototype.onFeedbackClick = function () { } ); } this.feedbackPromise.done( function ( feedback ) { - feedback.launch(); + feedback.launch( { + message: ve.msg( 'visualeditor-feedback-defaultmessage', location.toString() ) + } ); } ); };