r51654 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51653‎ | r51654 | r51655 >
Date:17:38, 9 June 2009
Author:tparscal
Status:deferred
Tags:
Comment:
Added insert section and 2 new items.
Modified paths:
  • /trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.hooks.php (modified) (history)
  • /trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.i18n.php (modified) (history)
  • /trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.js (modified) (history)
  • /trunk/extensions/UsabilityInitiative/EditToolbar/images/insert-gallery.png (added) (history)
  • /trunk/extensions/UsabilityInitiative/EditToolbar/images/insert-newline.png (added) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.hooks.php
@@ -83,6 +83,10 @@
8484 'edittoolbar-tool-format-subscript-example',
8585 /* Insert Section */
8686 'edittoolbar-section-insert',
 87+ 'edittoolbar-group-insert-media',
 88+ 'edittoolbar-tool-insert-gallery',
 89+ 'edittoolbar-tool-insert-gallery-example',
 90+ 'edittoolbar-tool-insert-newline',
8791 /* Special Characters Section */
8892 'edittoolbar-section-characters',
8993 /* Help Section */
Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.js
@@ -532,5 +532,45 @@
533533 }
534534 }
535535 }
 536+ },
 537+ // Insert section
 538+ 'insert': {
 539+ labelMsg: 'edittoolbar-section-insert',
 540+ groups: {
 541+ 'media': {
 542+ labelMsg: 'edittoolbar-group-insert-media',
 543+ tools: {
 544+ 'gallery': {
 545+ labelMsg: 'edittoolbar-tool-insert-gallery',
 546+ type: 'button',
 547+ icon: 'insert-gallery.png',
 548+ action: {
 549+ type: 'encapsulate',
 550+ options: {
 551+ pre: "<gallery>\n",
 552+ periMsg: 'edittoolbar-tool-insert-gallery-example',
 553+ post: "\n</gallery>",
 554+ }
 555+ }
 556+ }
 557+ }
 558+ },
 559+ 'other': {
 560+ tools: {
 561+ 'newline': {
 562+ labelMsg: 'edittoolbar-tool-insert-newline',
 563+ type: 'button',
 564+ icon: 'insert-newline.png',
 565+ action: {
 566+ type: 'encapsulate',
 567+ options: {
 568+ pre: "<br />\n",
 569+ }
 570+ }
 571+ }
 572+ }
 573+ }
 574+ }
 575+
536576 }
537577 };
\ No newline at end of file
Index: trunk/extensions/UsabilityInitiative/EditToolbar/images/insert-gallery.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/UsabilityInitiative/EditToolbar/images/insert-gallery.png
___________________________________________________________________
Name: svn:mime-type
538578 + application/octet-stream
Index: trunk/extensions/UsabilityInitiative/EditToolbar/images/insert-newline.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/UsabilityInitiative/EditToolbar/images/insert-newline.png
___________________________________________________________________
Name: svn:mime-type
539579 + application/octet-stream
Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.i18n.php
@@ -56,6 +56,10 @@
5757 'edittoolbar-tool-format-subscript-example' => 'Subscript text',
5858 /* Insert Section */
5959 'edittoolbar-section-insert' => 'Insert',
 60+ 'edittoolbar-group-insert-media' => 'Media',
 61+ 'edittoolbar-tool-insert-gallery' => 'Picture gallery',
 62+ 'edittoolbar-tool-insert-gallery-example' => "Image:Example.jpg|Caption1\nImage:Example.jpg|Caption2",
 63+ 'edittoolbar-tool-insert-newline' => 'New line',
6064 /* Special Characters Section */
6165 'edittoolbar-section-characters' => 'Special Characters',
6266 /* Help Section */

Status & tagging log