Index: trunk/extensions/CentralNotice/special/SpecialBannerLoader.php |
— | — | @@ -111,6 +111,8 @@ |
112 | 112 | |
113 | 113 | /** |
114 | 114 | * Extract a message name and send to getMessage() for translation |
| 115 | + * If the field is 'amount', get the current fundraiser donation amount and pass it as a |
| 116 | + * parameter to the message. |
115 | 117 | * @param $match A message array with 2 members: raw match, short name of message |
116 | 118 | * @return translated messsage string |
117 | 119 | * @throws SpecialBannerLoaderException |
Index: trunk/extensions/CentralNotice/CentralNotice.php |
— | — | @@ -86,7 +86,10 @@ |
87 | 87 | 'remoteExtPath' => 'CentralNotice', |
88 | 88 | 'scripts' => 'centralnotice.js', |
89 | 89 | 'styles' => 'centralnotice.css', |
90 | | - 'messages' => 'centralnotice-documentwrite-error' |
| 90 | + 'messages' => array( |
| 91 | + 'centralnotice-documentwrite-error', |
| 92 | + 'centralnotice-close-title', |
| 93 | + ) |
91 | 94 | ); |
92 | 95 | $wgResourceModules['ext.centralNotice.bannerStats'] = array( |
93 | 96 | 'localBasePath' => dirname( __FILE__ ), |
Index: trunk/extensions/CentralNotice/CentralNotice.i18n.php |
— | — | @@ -121,6 +121,7 @@ |
122 | 122 | 'centralnotice-collapse-button' => 'Collapse link', |
123 | 123 | 'centralnotice-expand-button' => 'Expand link', |
124 | 124 | 'centralnotice-close-button' => 'Close button', |
| 125 | + 'centralnotice-close-title' => 'Close', |
125 | 126 | 'centralnotice-translate-button' => 'Help translate link', |
126 | 127 | 'centralnotice-donate-button' => 'Donate button', |
127 | 128 | 'centralnotice-expanded-banner' => 'Expanded banner', |
Index: trunk/extensions/CentralNotice/centralnotice.js |
— | — | @@ -67,9 +67,13 @@ |
68 | 68 | var bannerField = document.getElementById('templateBody'); |
69 | 69 | switch( buttonType ) { |
70 | 70 | case 'close': // Insert close button |
71 | | - var buttonValue = '<a href="#" onclick="hideBanner();return false;">' |
| 71 | + var buttonValue = '<a href="#" title="' |
| 72 | + + mw.msg( 'centralnotice-close-title' ) |
| 73 | + + '" onclick="hideBanner();return false;">' |
72 | 74 | + '<img border="0" src="' + mw.config.get( 'stylepath' ) |
73 | | - + '/common/images/closewindow.png" alt="Close" /></a>'; |
| 75 | + + '/common/images/closewindow19x19.png" alt="' |
| 76 | + + mw.msg( 'centralnotice-close-title' ) |
| 77 | + + '" /></a>'; |
74 | 78 | break; |
75 | 79 | } |
76 | 80 | if (document.selection) { |