Set the default feedback message to the page URL

Bug: T109081
Change-Id: Ibc36acd38738e2d45621d477c0406b28a744290a
This commit is contained in:
Alex Monk 2015-08-17 17:26:12 +01:00
parent 0e528b53b5
commit 48f941caf9
4 changed files with 6 additions and 1 deletions

View file

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

View file

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

View file

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

View file

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