Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php |
— | — | @@ -1346,9 +1346,13 @@ |
1347 | 1347 | array( 'multiple' => 'multiple', 'size' => 4, 'id' => 'project_languages[]', 'name' => 'project_languages[]' ), |
1348 | 1348 | $options |
1349 | 1349 | ); |
| 1350 | + $buttons = array(); |
| 1351 | + $buttons[] = '<a href="#" onclick="selectLanguages(true);return false;">' . wfMsg( 'powersearch-toggleall' ) . '</a>'; |
| 1352 | + $buttons[] = '<a href="#" onclick="selectLanguages(false);return false;">' . wfMsg( 'powersearch-togglenone' ) . '</a>'; |
| 1353 | + $buttons[] = '<a href="#" onclick="top10Languages();return false;">' . wfMsg( 'centralnotice-top-ten-languages' ) . '</a>'; |
1350 | 1354 | $htmlOut .= Xml::tags( 'div', |
1351 | 1355 | array( 'style' => 'margin-top: 0.2em;' ), |
1352 | | - '<img src="'.$scriptPath.'/up-arrow.png" style="vertical-align:baseline;"/>' . wfMsg( 'centralnotice-select' ) . ' <a href="#" onclick="selectLanguages(true);return false;">' . wfMsg( 'powersearch-toggleall' ) . '</a>, <a href="#" onclick="selectLanguages(false);return false;">' . wfMsg( 'powersearch-togglenone' ) . '</a>, <a href="#" onclick="top10Languages();return false;">' . wfMsg( 'centralnotice-top-ten-languages' ) . '</a>' |
| 1356 | + '<img src="'.$scriptPath.'/up-arrow.png" style="vertical-align:baseline;"/>' . wfMsg( 'centralnotice-select', Language::commaList( $buttons ) ) |
1353 | 1357 | ); |
1354 | 1358 | } else { |
1355 | 1359 | $htmlOut .= Xml::tags( 'select', |
Index: trunk/extensions/CentralNotice/CentralNotice.i18n.php |
— | — | @@ -62,7 +62,7 @@ |
63 | 63 | 'centralnotice-hours' => 'Hour', |
64 | 64 | 'centralnotice-min' => 'Minute', |
65 | 65 | 'centralnotice-project-lang' => 'Project language', |
66 | | - 'centralnotice-select' => 'Select: ', |
| 66 | + 'centralnotice-select' => 'Select: $1', |
67 | 67 | 'centralnotice-top-ten-languages' => 'Top 10 languages', |
68 | 68 | 'centralnotice-project-name' => 'Project name', |
69 | 69 | 'centralnotice-start-date' => 'Start date', |
— | — | @@ -101,10 +101,10 @@ |
102 | 102 | 'centralnotice-clone-notice' => 'Create a copy of the banner', |
103 | 103 | 'centralnotice-clone-name' => 'Name:', |
104 | 104 | 'centralnotice-preview-all-template-translations' => 'Preview all available translations of banner', |
105 | | - 'centralnotice-insert' => 'Insert:', |
106 | | - 'centralnotice-hide-button' => 'Hide button', |
107 | | - 'centralnotice-collapse-button' => 'Collapse button', |
108 | | - 'centralnotice-expand-button' => 'Expand button', |
| 105 | + 'centralnotice-insert' => 'Insert: $1', |
| 106 | + 'centralnotice-hide-button' => '{{int:centralnotice-shared-hide}} button', |
| 107 | + 'centralnotice-collapse-button' => '{{int:centralnotice-shared-collapse}} button', |
| 108 | + 'centralnotice-expand-button' => '{{int:centralnotice-shared-expand}} button', |
109 | 109 | 'centralnotice-translate-button' => 'Help translate button', |
110 | 110 | 'centralnotice-donate-button' => 'Donate button', |
111 | 111 | 'centralnotice-expanded-banner' => 'Expanded banner', |
Index: trunk/extensions/CentralNotice/SpecialNoticeTemplate.php |
— | — | @@ -196,9 +196,12 @@ |
197 | 197 | ); |
198 | 198 | $htmlOut .= Xml::fieldset( wfMsg( 'centralnotice-banner' ) ); |
199 | 199 | $htmlOut .= wfMsg( 'centralnotice-edit-template-summary' ); |
| 200 | + $buttons = array(); |
| 201 | + $buttons[] = '<a href="#" onclick="insertButton(\'hide\');return false;">' . wfMsg( 'centralnotice-hide-button' ) . '</a>'; |
| 202 | + $buttons[] = '<a href="#" onclick="insertButton(\'translate\');return false;">' . wfMsg( 'centralnotice-translate-button' ) . '</a>'; |
200 | 203 | $htmlOut .= Xml::tags( 'div', |
201 | 204 | array( 'style' => 'margin-bottom: 0.2em;' ), |
202 | | - '<img src="'.$scriptPath.'/down-arrow.png" style="vertical-align:baseline;"/>' . wfMsg( 'centralnotice-insert' ) . ' <a href="#" onclick="insertButton(\'hide\');return false;">' . wfMsg( 'centralnotice-hide-button' ) . '</a>, <a href="#" onclick="insertButton(\'translate\');return false;">' . wfMsg( 'centralnotice-translate-button' ) . '</a>' |
| 205 | + '<img src="'.$scriptPath.'/down-arrow.png" style="vertical-align:baseline;"/>' . wfMsg( 'centralnotice-insert', Language::commaList( $buttons ) ) |
203 | 206 | ); |
204 | 207 | $htmlOut .= Xml::textarea( 'templateBody', '', 60, 20 ); |
205 | 208 | $htmlOut .= Xml::closeElement( 'fieldset' ); |
— | — | @@ -396,9 +399,12 @@ |
397 | 400 | } |
398 | 401 | $htmlOut .= Xml::fieldset( wfMsg( 'centralnotice-edit-template' ) ); |
399 | 402 | $htmlOut .= wfMsg( 'centralnotice-edit-template-summary' ); |
| 403 | + $buttons = array(); |
| 404 | + $buttons[] = '<a href="#" onclick="insertButton(\'hide\');return false;">' . wfMsg( 'centralnotice-hide-button' ) . '</a>'; |
| 405 | + $buttons[] = '<a href="#" onclick="insertButton(\'translate\');return false;">' . wfMsg( 'centralnotice-translate-button' ) . '</a>'; |
400 | 406 | $htmlOut .= Xml::tags( 'div', |
401 | 407 | array( 'style' => 'margin-bottom: 0.2em;' ), |
402 | | - '<img src="'.$scriptPath.'/down-arrow.png" style="vertical-align:baseline;"/>' . wfMsg( 'centralnotice-insert' ) . ' <a href="#" onclick="insertButton(\'hide\');return false;">' . wfMsg( 'centralnotice-hide-button' ) . '</a>, <a href="#" onclick="insertButton(\'translate\');return false;">' . wfMsg( 'centralnotice-translate-button' ) . '</a>' |
| 408 | + '<img src="'.$scriptPath.'/down-arrow.png" style="vertical-align:baseline;"/>' . wfMsg( 'centralnotice-insert', Language::commaList( $buttons ) ) |
403 | 409 | ); |
404 | 410 | $htmlOut .= Xml::textarea( 'templateBody', $body, 60, 20, $readonly ); |
405 | 411 | if ( $this->editable ) { |