diff --git a/VisualEditor.php b/VisualEditor.php index cadfc2456d..153e023b46 100644 --- a/VisualEditor.php +++ b/VisualEditor.php @@ -1147,6 +1147,8 @@ $wgResourceModules += array( ), 'messages' => array( 'visualeditor-annotationbutton-linknode-tooltip', + 'visualeditor-linkinspector-button-link-external', + 'visualeditor-linkinspector-button-link-internal', 'visualeditor-linkinspector-description-new-page', 'visualeditor-linkinspector-description-redirect', 'visualeditor-linkinspector-illegal-title', diff --git a/extension.json b/extension.json index 4dff96751f..3e749bc99d 100644 --- a/extension.json +++ b/extension.json @@ -1173,6 +1173,8 @@ ], "messages": [ "visualeditor-annotationbutton-linknode-tooltip", + "visualeditor-linkinspector-button-link-external", + "visualeditor-linkinspector-button-link-internal", "visualeditor-linkinspector-description-new-page", "visualeditor-linkinspector-description-redirect", "visualeditor-linkinspector-illegal-title", diff --git a/modules/ve-mw/i18n/en.json b/modules/ve-mw/i18n/en.json index 5cd0fa4150..1fc483b312 100644 --- a/modules/ve-mw/i18n/en.json +++ b/modules/ve-mw/i18n/en.json @@ -241,6 +241,8 @@ "visualeditor-formatdropdown-format-mw-heading5": "Sub-heading 3", "visualeditor-formatdropdown-format-mw-heading6": "Sub-heading 4", "visualeditor-languages-tool": "Languages", + "visualeditor-linkinspector-button-link-external": "External link", + "visualeditor-linkinspector-button-link-internal": "Search articles", "visualeditor-linkinspector-description-new-page": "page does not exist yet", "visualeditor-linkinspector-description-redirect": "redirect to $1", "visualeditor-linkinspector-illegal-title": "Invalid page title", diff --git a/modules/ve-mw/i18n/qqq.json b/modules/ve-mw/i18n/qqq.json index d2e16d0acb..b1d70ccb63 100644 --- a/modules/ve-mw/i18n/qqq.json +++ b/modules/ve-mw/i18n/qqq.json @@ -250,6 +250,8 @@ "visualeditor-formatdropdown-format-mw-heading5": "Item in the MediaWiki formatting dropdown for a level 5 heading (sub-section)\n{{Related|Visualeditor-formatdropdown}}", "visualeditor-formatdropdown-format-mw-heading6": "Item in the MediaWiki formatting dropdown for a level 6 heading (sub-section)\n{{Related|Visualeditor-formatdropdown}}", "visualeditor-languages-tool": "Tool for opening the languages links section of the meta dialog.\n{{Identical|Language}}", + "visualeditor-linkinspector-button-link-external": "Button label for entering an external link.", + "visualeditor-linkinspector-button-link-internal": "Button label for entering an internal link.", "visualeditor-linkinspector-description-new-page": "Description label for a new page in the link inspector.", "visualeditor-linkinspector-description-redirect": "Description label for a redirect in the link inspector.", "visualeditor-linkinspector-illegal-title": "Warning that the entered text is not a valid page title.", diff --git a/modules/ve-mw/ui/widgets/ve.ui.MWLinkTargetInputWidget.js b/modules/ve-mw/ui/widgets/ve.ui.MWLinkTargetInputWidget.js index a1b08a1ba9..9aab2efd3e 100644 --- a/modules/ve-mw/ui/widgets/ve.ui.MWLinkTargetInputWidget.js +++ b/modules/ve-mw/ui/widgets/ve.ui.MWLinkTargetInputWidget.js @@ -34,8 +34,8 @@ ve.ui.MWLinkTargetInputWidget = function VeUiMWLinkTargetInputWidget( config ) { this.linkTypeSelect = new OO.ui.ButtonSelectWidget( { classes: [ 've-ui-mwLinkTargetInputWidget-linkTypeSelect' ] } ).addItems( [ - new OO.ui.ButtonOptionWidget( { framed: false, data: 'internal', label: 'Search articles' } ), - new OO.ui.ButtonOptionWidget( { framed: false, data: 'external', label: 'External link' } ) + new OO.ui.ButtonOptionWidget( { framed: false, data: 'internal', label: ve.msg( 'visualeditor-linkinspector-button-link-internal' ) } ), + new OO.ui.ButtonOptionWidget( { framed: false, data: 'external', label: ve.msg( 'visualeditor-linkinspector-button-link-external' ) } ) ] ).connect( this, { select: 'onLinkTypeSelectSelect', choose: 'onLinkTypeSelectChoose'