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

This commit is contained in:
jenkins-bot 2014-02-12 22:10:32 +00:00 committed by Gerrit Code Review
commit 4ac1b42690
4 changed files with 9 additions and 1 deletions

View file

@ -764,8 +764,10 @@ $wgResourceModules += array(
'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',

View file

@ -189,7 +189,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.",

View file

@ -194,10 +194,12 @@
"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}}",
"visualeditor-wikitext-warning-link": "Link to page describing what Wikitext is.\n\nUsed in:\n* {{msg-mw|Visualeditor-wikitext-warning}}.",
"visualeditor-wikitext-warning-title": "Title of notification displayed when Wikitext has been detected"
}
}

View file

@ -170,6 +170,7 @@ ve.init.mw.Target.static.toolbarGroups = [
{
'type': 'menu',
'indicator': 'down',
'title': OO.ui.deferMsg( 'visualeditor-toolbar-format-tooltip' ),
'include': [ { 'group': 'format' } ],
'promote': [ 'paragraph' ],
'demote': [ 'preformatted', 'heading1' ]
@ -179,6 +180,7 @@ ve.init.mw.Target.static.toolbarGroups = [
'type': 'list',
'icon': 'text-style',
'indicator': 'down',
'title': OO.ui.deferMsg( 'visualeditor-toolbar-style-tooltip' ),
'include': [ { 'group': 'textStyle' }, 'clear' ],
'promote': [ 'bold', 'italic' ],
'demote': [ 'strikethrough', 'code', 'underline', 'clear' ]