jenkins-bot has submitted this change and it was merged.

Change subject: Change 'Edit source' to 'Create source' for new pages
......................................................................


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

Bug: 47421
Change-Id: Iafba040cb8eb53017f38f2099a473e0e43e2ec46
---
M VisualEditor.i18n.php
M VisualEditor.php
M modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js
3 files changed, 12 insertions(+), 5 deletions(-)

Approvals:
  Catrope: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/VisualEditor.i18n.php b/VisualEditor.i18n.php
index 522f014..8e40b6f 100644
--- a/VisualEditor.i18n.php
+++ b/VisualEditor.i18n.php
@@ -9,6 +9,7 @@
        '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 @@
        '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 @@
        '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 @@
        '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' => '
diff --git a/VisualEditor.php b/VisualEditor.php
index b3ad6de..e9a7102 100644
--- a/VisualEditor.php
+++ b/VisualEditor.php
@@ -147,8 +147,10 @@
                        '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',
diff --git a/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js 
b/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js
index 64b4e1e..b95e5df 100644
--- a/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js
+++ b/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js
@@ -816,9 +816,11 @@
                        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
                );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Iafba040cb8eb53017f38f2099a473e0e43e2ec46
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: Esanders <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: Trevor Parscal <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to