mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +00:00
Merge "Use full external link for link to mw.org help page"
This commit is contained in:
commit
35656833c0
|
@ -37,7 +37,7 @@
|
|||
"visualeditor-feedback-source-link": "{{int:visualeditor-feedback-link}}",
|
||||
"visualeditor-feedback-tool": "Leave feedback about this software",
|
||||
"visualeditor-help-label": "Read the user guide",
|
||||
"visualeditor-help-link": "mw:Special:MyLanguage/Help:VisualEditor/User guide",
|
||||
"visualeditor-help-link": "//www.mediawiki.org/wiki/Special:MyLanguage/Help:VisualEditor/User_guide",
|
||||
"visualeditor-welcomedialog-action": "Start editing",
|
||||
"visualeditor-welcomedialog-content": "Anyone can edit, and every improvement helps.",
|
||||
"visualeditor-welcomedialog-content-thanks": "Thank you for helping the world discover more!",
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
"visualeditor-feedback-source-link": "{{notranslate}}\nLink to a page where users can leave feedback about the source mode that is automatically posted using this tool. This can be the same as or different from {{msg-mw|visualeditor-feedback-link}}.",
|
||||
"visualeditor-feedback-tool": "Text of tool in the toolbar that lets users provide feedback.",
|
||||
"visualeditor-help-label": "Display text for the link to the user guide.\n{{Identical|User guide}}",
|
||||
"visualeditor-help-link": "{{optional}}\n\nThis is the page title with interwiki link of the [[:mw:Help:VisualEditor/User guide|VisualEditor user guide in mediawiki.org]].\n\nIf the user guide is translated to your language there, you can put a link to the translated user guide here. Just copy the English string without \"Special:MyLanguage\" and add a slash and your language code in the end. For example, for Japanese write \"mw:Help:VisualEditor/User guide/ja\".",
|
||||
"visualeditor-help-link": "{{optional}}\n\nThis is link to the [[:mw:Help:VisualEditor/User guide|VisualEditor user guide on mediawiki.org]].\n\nIf the user guide is translated to your language there, you can put a link to the translated user guide here. Just copy the English string without \"Special:MyLanguage\" and add a slash and your language code in the end. For example, for Japanese write \"mw:Help:VisualEditor/User guide/ja\".",
|
||||
"visualeditor-welcomedialog-action": "Label for the 'Start editing' button used to close the welcome dialog and start using the editor.\n{{Identical|Start editing}}",
|
||||
"visualeditor-welcomedialog-content": "Text welcoming the user to editing.",
|
||||
"visualeditor-welcomedialog-content-thanks": "This message expresses gratitude for the user's upcoming edit. It may be translated in the context of \"Thank you for this action which helps others discover new things\" or \"(By doing this) you're helping readers learn new things\".",
|
||||
|
|
|
@ -123,7 +123,15 @@ ve.ui.MWUserGuideTool.prototype.onUpdateState = function () {};
|
|||
|
||||
ve.ui.MWUserGuideTool.prototype.onSelect = function () {
|
||||
this.setActive( false );
|
||||
window.open( new mw.Title( ve.msg( 'visualeditor-help-link' ) ).getUrl() );
|
||||
const urlOrTitle = ve.msg( 'visualeditor-help-link' );
|
||||
if ( urlOrTitle.indexOf( '//' ) !== -1 ) {
|
||||
window.open( urlOrTitle );
|
||||
} else {
|
||||
// This link used to be internal link to mw:, but that doesn't work
|
||||
// on 3rd party installations (T367267). Keep support for internal
|
||||
// links as many wikis have local overrides which are internal.
|
||||
window.open( new mw.Title( urlOrTitle ).getUrl() );
|
||||
}
|
||||
};
|
||||
|
||||
ve.ui.toolFactory.register( ve.ui.MWUserGuideTool );
|
||||
|
|
Loading…
Reference in a new issue