Merge "Change 'Edit source' to 'Create source' for new pages"

This commit is contained in:
jenkins-bot 2013-05-18 10:19:01 +00:00 committed by Gerrit Code Review
commit bbfdb30f87
3 changed files with 12 additions and 5 deletions

View file

@ -9,6 +9,7 @@ $messages['en'] = array(
'accesskey-ca-ve-edit' => 'v',
'tag-visualeditor' => '[[Special:Tags|Tag]]: [[{{MediaWiki:Visualeditor-descriptionpagelink}}|VisualEditor]]',
'tag-visualeditor-description' => 'Edit made using the [[{{MediaWiki:Visualeditor-descriptionpagelink}}|VisualEditor]]',
'tooltip-ca-createsource' => 'Create the source code of this page',
'tooltip-ca-editsource' => 'Edit the source code of this page',
'tooltip-ca-ve-edit' => 'Edit this page with VisualEditor',
'visualeditor' => 'VisualEditor',
@ -21,6 +22,7 @@ $messages['en'] = array(
'visualeditor-notification-restored' => '$1 has been restored.',
'visualeditor-notification-reported' => 'Your problem has been reported. Thank you.',
'visualeditor-ca-editsource' => 'Edit source',
'visualeditor-ca-createsource' => 'Create source',
'visualeditor-ca-ve-edit' => 'VisualEditor',
'visualeditor-ca-ve-create' => 'VisualEditor',
'visualeditor-category-input-placeholder' => 'Add category',
@ -112,7 +114,8 @@ $messages['qqq'] = array(
'accesskey-ca-ve-edit' => '{{Ignore}}',
'tag-visualeditor' => 'Short description of the visualeditor tag ({{msg-mw|Tag-visualeditor}}). Shown on lists of changes (history, recentchanges, etc.) for each edit made using VisualEditor.',
'tag-visualeditor-description' => 'Long description of the visualeditor tag ({{msg-mw|Tag-visualeditor}}). Shown on [[Special:Tags]]',
'tooltip-ca-editsource' => 'Tooltip of the wikitext "Edit Source" tab.',
'tooltip-ca-createsource' => 'Tooltip of the wikitext "Create source" tab.',
'tooltip-ca-editsource' => 'Tooltip of the wikitext "Edit source" tab.',
'tooltip-ca-ve-edit' => 'Tooltip of the dedicated VisualEditor "Edit" tab.',
'visualeditor' => 'The name of the VisualEditor extension',
'visualeditor-desc' => '{{desc|name=Visual Editor|url=http://www.mediawiki.org/wiki/Extension:VisualEditor}}',
@ -127,8 +130,8 @@ Links are in {{msg-mw|Visualeditor-mainnamespacepagelink}} and {{msg-mw|visualed
'visualeditor-notification-restored' => 'Shown after a user restores a page to a previous revision. Parameters:
* $1 is a page name.',
'visualeditor-notification-reported' => 'Thank you message shown after a user reports a problematic page edit.',
'visualeditor-ca-editsource' => 'Text for the edit source link in the tab dropdown
{{Identical|visualeditor}}',
'visualeditor-ca-createsource' => 'Text for the create source link in the tab dropdown',
'visualeditor-ca-editsource' => 'Text for the edit source link in the tab dropdown',
'visualeditor-ca-ve-edit' => 'Link text of the dedicated VisualEditor Edit tab.
{{Identical|visualeditor}}',
'visualeditor-ca-ve-create' => '

View file

@ -147,8 +147,10 @@ $wgResourceModules += array(
'copyrightpage',
'accesskey-ca-editsource',
'accesskey-ca-ve-edit',
'tooltip-ca-createsource',
'tooltip-ca-editsource',
'tooltip-ca-ve-edit',
'visualeditor-ca-createsource',
'visualeditor-ca-editsource',
'visualeditor-ca-ve-edit',
'visualeditor-ca-ve-create',

View file

@ -816,9 +816,11 @@ ve.init.mw.ViewPageTarget.prototype.setupSkinTabs = function () {
pTabsId,
// Use original href to preserve oldid etc. (bug 38125)
$caEditLink.attr( 'href' ),
ve.msg( 'visualeditor-ca-editsource' ),
// Message: 'visualeditor-ca-editsource' or 'visualeditor-ca-createsource'
ve.msg( 'visualeditor-ca-' + action + 'source' ),
'ca-editsource',
ve.msg( 'tooltip-ca-editsource' ),
// Message: 'tooltip-ca-editsource' or 'tooltip-ca-createsource'
ve.msg( 'tooltip-ca-' + action + 'source' ),
ve.msg( 'accesskey-ca-editsource' ),
caVeEditNextnode
);