Merge "Move reference tool into Cite menu, and language into styling"

This commit is contained in:
jenkins-bot 2014-07-01 16:17:39 +00:00 committed by Gerrit Code Review
commit c1b7da7533
4 changed files with 19 additions and 17 deletions

View file

@ -151,7 +151,7 @@
"visualeditor-dialog-transclusion-title": "Transclusion",
"visualeditor-dialogbutton-media-tooltip": "Media",
"visualeditor-dialogbutton-meta-tooltip": "Page settings",
"visualeditor-dialogbutton-reference-tooltip": "Reference",
"visualeditor-dialogbutton-reference-tooltip": "Basic",
"visualeditor-dialogbutton-referencelist-tooltip": "References list",
"visualeditor-dialogbutton-template-tooltip": "Template",
"visualeditor-dialogbutton-transclusion-tooltip": "Transclusion",

View file

@ -194,9 +194,9 @@ ve.init.mw.Target.static.toolbarGroups = [
'icon': 'text-style',
'indicator': 'down',
'title': OO.ui.deferMsg( 'visualeditor-toolbar-style-tooltip' ),
'include': [ { 'group': 'textStyle' }, 'clear' ],
'include': [ { 'group': 'textStyle' }, 'language', 'clear' ],
'promote': [ 'bold', 'italic' ],
'demote': [ 'strikethrough', 'code', 'underline', 'clear' ]
'demote': [ 'strikethrough', 'code', 'underline', 'language', 'clear' ]
},
// Link
{ 'include': [ 'link' ] },
@ -205,7 +205,8 @@ ve.init.mw.Target.static.toolbarGroups = [
'type': 'list',
'label': OO.ui.deferMsg( 'visualeditor-toolbar-cite-label' ),
'indicator': 'down',
'include': [ { 'group': 'cite' } ]
'include': [ { 'group': 'cite' }, 'reference' ],
'demote': [ 'reference' ]
},
// Structure
{
@ -220,8 +221,8 @@ ve.init.mw.Target.static.toolbarGroups = [
'label': OO.ui.deferMsg( 'visualeditor-toolbar-insert' ),
'indicator': 'down',
'include': '*',
'promote': [ 'reference', 'mediaInsert' ],
'demote': [ 'language', 'specialcharacter' ]
'promote': [ 'mediaInsert', 'transclusion' ],
'demote': [ 'specialcharacter' ]
}
];

View file

@ -59,9 +59,9 @@ ve.ui.MWMediaEditDialog.static.toolbarGroups = [
'icon': 'text-style',
'indicator': 'down',
'title': OO.ui.deferMsg( 'visualeditor-toolbar-style-tooltip' ),
'include': [ { 'group': 'textStyle' }, 'clear' ],
'include': [ { 'group': 'textStyle' }, 'language', 'clear' ],
'promote': [ 'bold', 'italic' ],
'demote': [ 'strikethrough', 'code', 'underline', 'clear' ]
'demote': [ 'strikethrough', 'code', 'underline', 'language', 'clear' ]
},
// Link
{ 'include': [ 'link' ] },
@ -70,7 +70,8 @@ ve.ui.MWMediaEditDialog.static.toolbarGroups = [
'type': 'list',
'label': OO.ui.deferMsg( 'visualeditor-toolbar-cite-label' ),
'indicator': 'down',
'include': [ { 'group': 'cite' } ]
'include': [ { 'group': 'cite' }, 'reference' ],
'demote': [ 'reference' ]
},
// No structure
/* {
@ -91,8 +92,8 @@ ve.ui.MWMediaEditDialog.static.toolbarGroups = [
'referenceList',
'gallery'
],
'promote': [ 'reference', 'mediaInsert' ],
'demote': [ 'language', 'specialcharacter' ]
'promote': [ 'mediaInsert', 'transclusion' ],
'demote': [ 'specialcharacter' ]
}
];

View file

@ -58,18 +58,18 @@ ve.ui.MWReferenceDialog.static.toolbarGroups = [
'icon': 'text-style',
'indicator': 'down',
'title': OO.ui.deferMsg( 'visualeditor-toolbar-style-tooltip' ),
'include': [ { 'group': 'textStyle' }, 'clear' ],
'include': [ { 'group': 'textStyle' }, 'language', 'clear' ],
'promote': [ 'bold', 'italic' ],
'demote': [ 'strikethrough', 'code', 'underline', 'clear' ]
'demote': [ 'strikethrough', 'code', 'underline', 'language', 'clear' ]
},
// Link
{ 'include': [ 'link' ] },
// Cite
// Cite but not reference
{
'type': 'list',
'label': OO.ui.deferMsg( 'visualeditor-toolbar-cite-label' ),
'indicator': 'down',
'include': [ { 'group': 'cite-transclusion' } ]
'include': [ { 'group': 'cite-transclusion' }/*, 'reference' ], 'demote': [ 'reference' */]
},
// No structure
/* {
@ -91,8 +91,8 @@ ve.ui.MWReferenceDialog.static.toolbarGroups = [
'referenceList',
'gallery'
],
'promote': [ 'mediaInsert' ],
'demote': [ 'language', 'specialcharacter' ]
'promote': [ 'mediaInsert', 'transclusion' ],
'demote': [ 'specialcharacter' ]
}
];