diff --git a/VisualEditor.i18n.php b/VisualEditor.i18n.php
index 5557fe24a0..3a1c5b2f72 100644
--- a/VisualEditor.i18n.php
+++ b/VisualEditor.i18n.php
@@ -12,11 +12,34 @@ $messages['en'] = array(
'visualeditor-tooltip-wikitext' => 'Toggle wikitext view',
'visualeditor-tooltip-json' => 'Toggle JSON view',
'visualeditor-tooltip-html' => 'Toggle HTML view',
- 'visualeditor-tooltip-render' => 'Toggle preview',
+ 'visualeditor-tooltip-render' => 'Toggle preview',
'visualeditor-tooltip-history' => 'Toggle transaction history view',
'visualeditor-tooltip-help' => 'Toggle help view',
'visualeditor-feedback-prompt' => 'Leave feedback',
'visualeditor-feedback-dialog-title' => 'Leave feedback about VisualEditor Sandbox',
+ 'visualeditor-ca-editsource' => 'Edit source',
+ 'visualeditor-linkinspector-title' => 'Edit link',
+ 'visualeditor-linkinspector-label-pagetitle' => 'Page title',
+ 'visualeditor-formatdropdown-title' => 'Change format',
+ 'visualeditor-formatdropdown-format-paragraph' => 'Paragraph',
+ 'visualeditor-formatdropdown-format-heading1' => 'Heading 1',
+ 'visualeditor-formatdropdown-format-heading2' => 'Heading 2',
+ 'visualeditor-formatdropdown-format-heading3' => 'Heading 3',
+ 'visualeditor-formatdropdown-format-heading4' => 'Heading 4',
+ 'visualeditor-formatdropdown-format-heading5' => 'Heading 5',
+ 'visualeditor-formatdropdown-format-heading6' => 'Heading 6',
+ 'visualeditor-formatdropdown-format-preformatted' => 'Preformatted',
+ 'visualeditor-annotationbutton-bold-tooltip' => 'Bold',
+ 'visualeditor-annotationbutton-italic-tooltip' => 'Italic',
+ 'visualeditor-annotationbutton-link-tooltip' => 'Link',
+ 'visualeditor-indentationbutton-indent-tooltip' => 'Increase indentation',
+ 'visualeditor-indentationbutton-outdent-tooltip' => 'Decrease indentation',
+ 'visualeditor-listbutton-number-tooltip' => 'Numbered list',
+ 'visualeditor-listbutton-bullet-tooltip' => 'Bullet list',
+ 'visualeditor-clearbutton-tooltip' => 'Clear formatting',
+ 'visualeditor-historybutton-undo-tooltip' => 'Undo',
+ 'visualeditor-historybutton-redo-tooltip' => 'Redo',
+ 'visualeditor-viewpage-savewarning' => 'Are you sure you want to go back to view mode without saving first?',
);
/** Message documentation (Message documentation)
@@ -31,6 +54,29 @@ $messages['qqq'] = array(
'visualeditor-tooltip-render' => 'Tooltip for a toolbar button which activates or deactivates a split view, with the visual editor on the left-hand side, and a dynamically updating preview on the right-hand side. This view is primarily useful for debugging purposes.',
'visualeditor-tooltip-history' => "Tooltip for a toolbar button which activates or deactivates a split view, with the visual editor on the left-hand side, and a history of the user's edit transactions on the right-hand side. This view is primarily useful for debugging purposes.",
'visualeditor-feedback-prompt' => 'A link that opens feedback form in http://www.mediawiki.org/wiki/Special:VisualEditorSandbox',
+ 'visualeditor-ca-editsource' => 'Text for the edit source link in the tab dropdown',
+ 'visualeditor-linkinspector-title' => 'Title of the link inspector dialog',
+ 'visualeditor-linkinspector-label-pagetitle' => 'Label for the text field that holds the link target in the link inspector',
+ 'visualeditor-formatdropdown-tooltip' => 'Tooltip for the formatting dropdown',
+ 'visualeditor-formatdropdown-format-paragraph' => 'Item in the formatting dropdown for paragraphs (normal text)',
+ 'visualeditor-formatdropdown-format-heading1' => 'Item in the formatting dropdown for a level 1 heading',
+ 'visualeditor-formatdropdown-format-heading2' => 'Item in the formatting dropdown for a level 2 heading',
+ 'visualeditor-formatdropdown-format-heading3' => 'Item in the formatting dropdown for a level 3 heading',
+ 'visualeditor-formatdropdown-format-heading4' => 'Item in the formatting dropdown for a level 4 heading',
+ 'visualeditor-formatdropdown-format-heading5' => 'Item in the formatting dropdown for a level 5 heading',
+ 'visualeditor-formatdropdown-format-heading6' => 'Item in the formatting dropdown for a level 6 heading',
+ 'visualeditor-formatdropdown-format-preformatted' => 'Item in the formatting dropdown for preformatted text',
+ 'visualeditor-annotationbutton-bold-tooltip' => 'Tooltip for the bold button',
+ 'visualeditor-annotationbutton-italic-tooltip' => 'Tooltip for the italic button',
+ 'visualeditor-annotationbutton-link-tooltip' => 'Tooltip for the link button',
+ 'visualeditor-indentationbutton-indent-tooltip' => 'Tooltip for the list indent button',
+ 'visualeditor-indentationbutton-outdent-tooltip' => 'Tooltip for the list outdent button',
+ 'visualeditor-listbutton-number-tooltip' => 'Tooltip for the numbered list button',
+ 'visualeditor-listbutton-bullet-tooltip' => 'Tooltip for the bullet list button',
+ 'visualeditor-clearbutton-tooltip' => 'Tooltip for the clear formatting button',
+ 'visualeditor-historybutton-undo-tooltip' => 'Tooltip for the undo button',
+ 'visualeditor-historybutton-redo-tooltip' => 'Tooltip for the redo button',
+ 'visualeditor-viewpage-savewarning' => 'Text shown when the user tries to leave the editor without saving their changes',
);
/** Asturian (asturianu)
diff --git a/VisualEditor.php b/VisualEditor.php
index 4f49380abd..d321f230ca 100644
--- a/VisualEditor.php
+++ b/VisualEditor.php
@@ -111,7 +111,8 @@ $wgResourceModules += array(
'create',
'accesskey-ca-edit',
'tooltip-ca-edit',
- 'viewsource'
+ 'viewsource',
+ 'visualeditor-ca-editsource'
),
),
'ext.visualEditor.init' => $wgVisualEditorResourceTemplate + array(
@@ -256,6 +257,28 @@ $wgResourceModules += array(
'visualeditor-tooltip-history',
'visualeditor-tooltip-help',
'visualeditor',
+ 'visualeditor-linkinspector-tooltip',
+ 'visualeditor-linkinspector-label-pagetitle',
+ 'visualeditor-formatdropdown-tooltip',
+ 'visualeditor-formatdropdown-format-paragraph',
+ 'visualeditor-formatdropdown-format-heading1',
+ 'visualeditor-formatdropdown-format-heading2',
+ 'visualeditor-formatdropdown-format-heading3',
+ 'visualeditor-formatdropdown-format-heading4',
+ 'visualeditor-formatdropdown-format-heading5',
+ 'visualeditor-formatdropdown-format-heading6',
+ 'visualeditor-formatdropdown-format-preformatted',
+ 'visualeditor-annotationbutton-bold-tooltip',
+ 'visualeditor-annotationbutton-italic-tooltip',
+ 'visualeditor-annotationbutton-link-tooltip',
+ 'visualeditor-indentationbutton-indent-tooltip',
+ 'visualeditor-indentationbutton-outdent-tooltip',
+ 'visualeditor-listbutton-number-tooltip',
+ 'visualeditor-listbutton-bullet-tooltip',
+ 'visualeditor-clearbutton-tooltip',
+ 'visualeditor-historybutton-undo-tooltip',
+ 'visualeditor-historybutton-redo-tooltip',
+ 'visualeditor-viewpage-savewarning',
),
)
);
diff --git a/modules/ve2/init/targets/ve.init.ViewPageTarget.js b/modules/ve2/init/targets/ve.init.ViewPageTarget.js
index 3ad9e4bfbe..62d69357e8 100644
--- a/modules/ve2/init/targets/ve.init.ViewPageTarget.js
+++ b/modules/ve2/init/targets/ve.init.ViewPageTarget.js
@@ -77,12 +77,12 @@ ve.init.ViewPageTarget.saveDialogTemplate = '\
\
\
+ for="ve-init-viewPageTarget-saveDialog-minorEdit">\