Index: trunk/extensions/UploadWizard/UploadWizardPage.js |
— | — | @@ -7,6 +7,8 @@ |
8 | 8 | */ |
9 | 9 | |
10 | 10 | // Create UploadWizard |
| 11 | +( function( mw, $, undefined ) { |
| 12 | + |
11 | 13 | mw.UploadWizardPage = function() { |
12 | 14 | |
13 | 15 | var config = mw.config.get( 'UploadWizardConfig' ); |
— | — | @@ -20,5 +22,16 @@ |
21 | 23 | }; |
22 | 24 | |
23 | 25 | jQuery( document ).ready( function() { |
| 26 | + // add "magic" to Language template parser for keywords |
| 27 | + var options = { magic: { 'SITENAME' : wgSiteName } }; |
| 28 | + |
| 29 | + // these functions may exist already, but we want them to also know about our magic |
| 30 | + // (the interface for this needs to change; add magic on the fly?) |
| 31 | + window.gM = mw.jqueryMsg.getMessageFunction( options ); |
| 32 | + $.fn.msg = mw.jqueryMsg.getPlugin( options ); |
| 33 | + |
| 34 | + // show page. |
24 | 35 | mw.UploadWizardPage(); |
25 | 36 | } ); |
| 37 | + |
| 38 | +} )( window.mediaWiki, jQuery ); |