Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php |
— | — | @@ -1355,7 +1355,7 @@ |
1356 | 1356 | ); |
1357 | 1357 | $htmlOut .= Xml::tags( 'div', |
1358 | 1358 | array( 'style' => 'margin-top: 0.2em;' ), |
1359 | | - '<img src="'.$scriptPath.'/arrow.png" style="vertical-align:baseline;"/>Select: <a href="#" onclick="selectLanguages(true);return false;">All</a>, <a href="#" onclick="selectLanguages(false);return false;">None</a>, <a href="#" onclick="top10Languages();return false;">Top 10 Languages</a>' |
| 1359 | + '<img src="'.$scriptPath.'/arrow.png" style="vertical-align:baseline;"/>' . wfMsg( 'centralnotice-select' ) . ': <a href="#" onclick="selectLanguages(true);return false;">All</a>, <a href="#" onclick="selectLanguages(false);return false;">None</a>, <a href="#" onclick="top10Languages();return false;">Top 10 Languages</a>' |
1360 | 1360 | ); |
1361 | 1361 | } else { |
1362 | 1362 | $htmlOut .= Xml::tags( 'select', |
Index: trunk/extensions/CentralNotice/CentralNotice.i18n.php |
— | — | @@ -18,6 +18,7 @@ |
19 | 19 | 'centralnotice-end-date' => 'End date', |
20 | 20 | 'centralnotice-enabled' => 'Enabled', |
21 | 21 | 'centralnotice-modify' => 'Submit', |
| 22 | + 'centralnotice-save-banner' => 'Save banner', |
22 | 23 | 'centralnotice-preview' => 'Preview', |
23 | 24 | 'centralnotice-add-new' => 'Add a new campaign', |
24 | 25 | 'centralnotice-remove' => 'Remove', |
— | — | @@ -57,6 +58,7 @@ |
58 | 59 | 'centralnotice-hours' => 'Hour', |
59 | 60 | 'centralnotice-min' => 'Minute', |
60 | 61 | 'centralnotice-project-lang' => 'Project language', |
| 62 | + 'centralnotice-select' => 'Select', |
61 | 63 | 'centralnotice-project-name' => 'Project name', |
62 | 64 | 'centralnotice-start-date' => 'Start date', |
63 | 65 | 'centralnotice-start-time' => 'Start time (UTC)', |
— | — | @@ -94,7 +96,15 @@ |
95 | 97 | 'centralnotice-clone-notice' => 'Create a copy of the banner', |
96 | 98 | 'centralnotice-clone-name' => 'Name', |
97 | 99 | 'centralnotice-preview-all-template-translations' => 'Preview all available translations of banner', |
98 | | - |
| 100 | + 'centralnotice-insert' => 'Insert', |
| 101 | + 'centralnotice-hide-button' => 'Hide Button', |
| 102 | + 'centralnotice-collapse-button' => 'Collapse Button', |
| 103 | + 'centralnotice-expand-button' => 'Expand Button', |
| 104 | + 'centralnotice-translate-button' => 'Help Translate Button', |
| 105 | + 'centralnotice-donate-button' => 'Donate Button', |
| 106 | + 'centralnotice-expanded-banner' => 'Expanded banner', |
| 107 | + 'centralnotice-collapsed-banner' => 'Collapsed banner', |
| 108 | + |
99 | 109 | 'right-centralnotice-admin' => 'Manage central notices', |
100 | 110 | 'right-centralnotice-translate' => 'Translate central notices', |
101 | 111 | |
— | — | @@ -121,6 +131,7 @@ |
122 | 132 | 'centralnotice-end-date' => '{{Identical|End date}}', |
123 | 133 | 'centralnotice-enabled' => '{{Identical|Enabled}}', |
124 | 134 | 'centralnotice-modify' => '{{Identical|Submit}}', |
| 135 | + 'centralnotice-save-banner' => 'Label for the submit button which saves a CentralNotice banner.', |
125 | 136 | 'centralnotice-preview' => '{{Identical|Preview}}', |
126 | 137 | 'centralnotice-remove' => '{{Identical|Remove}}', |
127 | 138 | 'centralnotice-translate-heading' => 'Fieldset label. $1 is a name of a template.', |
Index: trunk/extensions/CentralNotice/SpecialNoticeTemplate.php |
— | — | @@ -189,21 +189,23 @@ |
190 | 190 | $htmlOut .= Xml::hidden( 'wpMethod', 'addTemplate' ); |
191 | 191 | $htmlOut .= Xml::tags( 'p', null, |
192 | 192 | Xml::inputLabel( |
193 | | - wfMsg( 'centralnotice-template-name' ), |
| 193 | + wfMsg( 'centralnotice-template-name' ) . ":", |
194 | 194 | 'templateName', |
195 | 195 | 'templateName', |
196 | 196 | 25 |
197 | 197 | ) |
198 | 198 | ); |
| 199 | + $htmlOut .= Xml::fieldset( wfMsg( 'centralnotice-template' ) ); |
199 | 200 | $htmlOut .= Xml::tags( 'p', null, |
200 | 201 | Xml::textarea( 'templateBody', '', 60, 20 ) |
201 | 202 | ); |
| 203 | + $htmlOut .= Xml::closeElement( 'fieldset' ); |
202 | 204 | $htmlOut .= Xml::hidden( 'authtoken', $wgUser->editToken() ); |
203 | 205 | |
204 | 206 | // Submit button |
205 | 207 | $htmlOut .= Xml::tags( 'div', |
206 | 208 | array( 'class' => 'cn-buttons' ), |
207 | | - Xml::submitButton( wfMsg( 'centralnotice-modify' ) ) |
| 209 | + Xml::submitButton( wfMsg( 'centralnotice-save-banner' ) ) |
208 | 210 | ); |
209 | 211 | |
210 | 212 | $htmlOut .= Xml::closeElement( 'form' ); |