Jforrester has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/108855


Change subject: Add tooltips to the drop-down menus explaining what they do
......................................................................

Add tooltips to the drop-down menus explaining what they do

Bug: 59719
Change-Id: I449be926e830de241a870d96bf30c835f60ca77d
---
M VisualEditor.php
M modules/ve-mw/i18n/en.json
M modules/ve-mw/i18n/qqq.json
M modules/ve-mw/init/ve.init.mw.Target.js
4 files changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/55/108855/1

diff --git a/VisualEditor.php b/VisualEditor.php
index 7aa62a1..a0a244a 100644
--- a/VisualEditor.php
+++ b/VisualEditor.php
@@ -741,8 +741,10 @@
                        'visualeditor-serializeerror',
                        'visualeditor-settings-tool',
                        'visualeditor-toolbar-cancel',
+                       'visualeditor-toolbar-format-tooltip',
                        'visualeditor-toolbar-insert',
                        'visualeditor-toolbar-savedialog',
+                       'visualeditor-toolbar-style-tooltip',
                        'visualeditor-viewpage-savewarning',
                        'visualeditor-wikitext-warning-title',
                        'visualeditor-window-title',
diff --git a/modules/ve-mw/i18n/en.json b/modules/ve-mw/i18n/en.json
index 206d719..5069417 100644
--- a/modules/ve-mw/i18n/en.json
+++ b/modules/ve-mw/i18n/en.json
@@ -171,7 +171,9 @@
     "visualeditor-serializeerror": "Error loading data from server: $1.",
     "visualeditor-settings-tool": "Page settings",
     "visualeditor-toolbar-cancel": "Cancel",
+    "visualeditor-toolbar-format-tooltip": "Format paragraph",
     "visualeditor-toolbar-savedialog": "Save page",
+    "visualeditor-toolbar-style-tooltip": "Style text",
     "visualeditor-usernamespacepagelink": "Project:User namespace",
     "visualeditor-viewpage-savewarning": "Are you sure you want to go back to 
view mode without saving first?",
     "visualeditor-wikitext-warning": "You are using VisualEditor - 
[[{{MediaWiki:visualeditor-wikitext-warning-link}}|wikitext]] does not work 
here. Click \"{{int:visualeditor-ca-editsource}}\" to edit the page in wikitext 
mode – unsaved changes will be lost.",
diff --git a/modules/ve-mw/i18n/qqq.json b/modules/ve-mw/i18n/qqq.json
index 21c498f..71acd41 100644
--- a/modules/ve-mw/i18n/qqq.json
+++ b/modules/ve-mw/i18n/qqq.json
@@ -176,7 +176,9 @@
     "visualeditor-serializeerror": "Text shown when the editor fails to load 
the wikitext for saving.\n\nParameters:\n* $1 is an error message, in English.",
     "visualeditor-settings-tool": "Text of tool in the toolbar the lets users 
set specific page settings.\n{{Identical|Page settings}}",
     "visualeditor-toolbar-cancel": "Label text for button to exit from 
VisualEditor.\n{{Identical|Cancel}}",
+    "visualeditor-toolbar-format-tooltip": "Tooltip text for the paragraph 
formatting menu",
     "visualeditor-toolbar-savedialog": "Label text for button to open save 
dialog.\n\nUsed in:\n* 
{{msg-mw|Guidedtour-tour-gettingstartedtasktoolbarve-click-save-description}}.\n{{Identical|Save
 page}}",
+    "visualeditor-toolbar-style-tooltip": "Tooltip text for the text styling 
menu",
     "visualeditor-usernamespacepagelink": "Name of a page describing the user 
namespace (NS2) in this project.\n{{doc-important|Do not translate \"Project\"; 
it is automatically converted to the wiki's project namespace.}}",
     "visualeditor-viewpage-savewarning": "Text shown when the user tries to 
leave the editor without saving their changes",
     "visualeditor-wikitext-warning": "Contents of notification displayed when 
Wikitext has been detected.\n\nRefers to:\n* 
{{msg-mw|Visualeditor-wikitext-warning-link}}\n* 
{{msg-mw|Visualeditor-ca-editsource}}",
diff --git a/modules/ve-mw/init/ve.init.mw.Target.js 
b/modules/ve-mw/init/ve.init.mw.Target.js
index 5c246a4..607a373 100644
--- a/modules/ve-mw/init/ve.init.mw.Target.js
+++ b/modules/ve-mw/init/ve.init.mw.Target.js
@@ -170,6 +170,7 @@
        {
                'type': 'menu',
                'indicator': 'down',
+               'title': ve.msg( 'visualeditor-toolbar-format-tooltip' ),
                'include': [ { 'group': 'format' } ],
                'promote': [ 'paragraph' ],
                'demote': [ 'preformatted', 'heading1' ]
@@ -179,6 +180,7 @@
                'type': 'list',
                'icon': 'text-style',
                'indicator': 'down',
+               'title': ve.msg( 'visualeditor-toolbar-style-tooltip' ),
                'include': [ { 'group': 'textStyle' }, 'clear' ],
                'promote': [ 'bold', 'italic' ],
                'demote': [ 'strikethrough', 'code',  'underline', 'clear' ]

-- 
To view, visit https://gerrit.wikimedia.org/r/108855
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I449be926e830de241a870d96bf30c835f60ca77d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Jforrester <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to