Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.i18n.php |
— | — | @@ -33,8 +33,9 @@ |
34 | 34 | 'edittoolbar-insert-file' => 'Embedded file', |
35 | 35 | 'edittoolbar-insert-file-pre' => '$1File:', |
36 | 36 | 'edittoolbar-insert-file-example' => 'Example.jpg', |
37 | | - 'edittoolbar-insert-reference' => 'Insert a reference', |
| 37 | + 'edittoolbar-insert-reference' => 'Reference', |
38 | 38 | 'edittoolbar-insert-reference-example' => 'Insert footnote text here', |
| 39 | + 'edittoolbar-insert-signature' => 'Signature and timestamp', |
39 | 40 | /* Formatting Section */ |
40 | 41 | 'edittoolbar-format-ulist' => 'Bulleted list', |
41 | 42 | 'edittoolbar-format-ulist-example' => 'Bulleted list item', |
Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.hooks.php |
— | — | @@ -19,12 +19,13 @@ |
20 | 20 | |
21 | 21 | // Internationalization |
22 | 22 | wfLoadExtensionMessages( 'EditToolbar' ); |
23 | | - |
24 | | - // Replaces toolbar with new toolbar container |
25 | | - if ( $wgUser->getOption( 'usebetatoolbar' ) ) { |
26 | | - $toolbar = '<div id="edittoolbar"></div>'; |
| 23 | + // Checks if the user has not opted to use this toolbar |
| 24 | + if ( !$wgUser->getOption( 'usebetatoolbar' ) ) { |
| 25 | + // Exists the function without doing anything |
| 26 | + return true; |
27 | 27 | } |
28 | | - |
| 28 | + // Adds toolbar container |
| 29 | + $toolbar = '<div id="edittoolbar"></div>'; |
29 | 30 | // List of messages to be sent to the client for use in the toolbar |
30 | 31 | $messages = array( |
31 | 32 | /* Sections */ |
— | — | @@ -46,6 +47,7 @@ |
47 | 48 | 'edittoolbar-insert-file-example', |
48 | 49 | 'edittoolbar-insert-reference', |
49 | 50 | 'edittoolbar-insert-reference-example', |
| 51 | + 'edittoolbar-insert-signature', |
50 | 52 | /* Formatting Section */ |
51 | 53 | 'edittoolbar-format-ulist', |
52 | 54 | 'edittoolbar-format-ulist-example', |