Alex Monk has uploaded a new change for review.
https://gerrit.wikimedia.org/r/232063
Change subject: Set the default feedback message to the page URL
......................................................................
Set the default feedback message to the page URL
Bug: T109081
Change-Id: Ibc36acd38738e2d45621d477c0406b28a744290a
---
M extension.json
M modules/ve-mw/i18n/en.json
M modules/ve-mw/i18n/qqq.json
M modules/ve-mw/ui/tools/ve.ui.MWPopupTool.js
4 files changed, 6 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor
refs/changes/63/232063/1
diff --git a/extension.json b/extension.json
index 2221b57..9dd2b18 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 5c90bcc..1725c00 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 0231e1e..d992247 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 4f686a8..cbb5a30 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 @@
} );
}
this.feedbackPromise.done( function ( feedback ) {
- feedback.launch();
+ feedback.launch( {
+ message: ve.msg(
'visualeditor-feedback-defaultmessage', location.toString() )
+ } );
} );
};
--
To view, visit https://gerrit.wikimedia.org/r/232063
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibc36acd38738e2d45621d477c0406b28a744290a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits