Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php |
— | — | @@ -508,11 +508,11 @@ |
509 | 509 | $htmlOut .= Xml::closeElement( 'tr' ); |
510 | 510 | // Countries |
511 | 511 | $htmlOut .= Xml::openElement( 'tr' ); |
512 | | - $htmlOut .= Xml::tags( 'td', array(), Xml::label( 'Geotargeted', 'geotargeted' ) ); |
| 512 | + $htmlOut .= Xml::tags( 'td', array(), Xml::label( wfMsgHtml( 'centralnotice-geotargeted' ), 'geotargeted' ) ); |
513 | 513 | $htmlOut .= Xml::tags( 'td', array(), Xml::check( 'geotargeted', false, wfArrayMerge( $readonly, array( 'value' => 1, 'id' => 'geotargeted' ) ) ) ); |
514 | 514 | $htmlOut .= Xml::closeElement( 'tr' ); |
515 | 515 | $htmlOut .= Xml::openElement( 'tr', array( 'id'=>'geoMultiSelector' ) ); |
516 | | - $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' ), 'Countries' ); |
| 516 | + $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' ), wfMsgHtml( 'centralnotice-countries' ) ); |
517 | 517 | $htmlOut .= Xml::tags( 'td', array(), $this->geoMultiSelector() ); |
518 | 518 | $htmlOut .= Xml::closeElement( 'tr' ); |
519 | 519 | |
— | — | @@ -811,11 +811,11 @@ |
812 | 812 | $htmlOut .= Xml::closeElement( 'tr' ); |
813 | 813 | // Countries |
814 | 814 | $htmlOut .= Xml::openElement( 'tr' ); |
815 | | - $htmlOut .= Xml::tags( 'td', array(), Xml::label( 'Geotargeted', 'geotargeted' ) ); |
| 815 | + $htmlOut .= Xml::tags( 'td', array(), Xml::label( wfMsgHtml( 'centralnotice-geotargeted' ), 'geotargeted' ) ); |
816 | 816 | $htmlOut .= Xml::tags( 'td', array(), Xml::check( 'geotargeted', false, wfArrayMerge( $readonly, array( 'value' => $row->not_name, 'id' => 'geotargeted' ) ) ) ); |
817 | 817 | $htmlOut .= Xml::closeElement( 'tr' ); |
818 | 818 | $htmlOut .= Xml::openElement( 'tr', array( 'id'=>'geoMultiSelector' ) ); |
819 | | - $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' ), 'Countries' ); |
| 819 | + $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' ), wfMsgHtml( 'centralnotice-countries' ) ); |
820 | 820 | $htmlOut .= Xml::tags( 'td', array(), $this->geoMultiSelector() ); |
821 | 821 | $htmlOut .= Xml::closeElement( 'tr' ); |
822 | 822 | // Enabled |
— | — | @@ -1684,12 +1684,12 @@ |
1685 | 1685 | $htmlOut = ''; |
1686 | 1686 | if ( $this->editable ) { |
1687 | 1687 | $htmlOut .= Xml::tags( 'select', |
1688 | | - array( 'multiple' => 'multiple', 'size' => 4, 'id' => 'geo_countries[]', 'name' => 'geo_countries[]' ), |
| 1688 | + array( 'multiple' => 'multiple', 'size' => 5, 'id' => 'geo_countries[]', 'name' => 'geo_countries[]' ), |
1689 | 1689 | $options |
1690 | 1690 | ); |
1691 | 1691 | } else { |
1692 | 1692 | $htmlOut .= Xml::tags( 'select', |
1693 | | - array( 'multiple' => 'multiple', 'size' => 4, 'id' => 'geo_countries[]', 'name' => 'geo_countries[]', 'disabled' => 'disabled' ), |
| 1693 | + array( 'multiple' => 'multiple', 'size' => 5, 'id' => 'geo_countries[]', 'name' => 'geo_countries[]', 'disabled' => 'disabled' ), |
1694 | 1694 | $options |
1695 | 1695 | ); |
1696 | 1696 | } |
Index: trunk/extensions/CentralNotice/CentralNotice.i18n.php |
— | — | @@ -120,6 +120,8 @@ |
121 | 121 | 'centralnotice-banner-type' => 'Banner type:', |
122 | 122 | 'centralnotice-banner-hidable' => 'Static/Hidable', |
123 | 123 | 'centralnotice-banner-collapsible' => 'Collapsible', |
| 124 | + 'centralnotice-geotargeted' => 'Geotargeted', |
| 125 | + 'centralnotice-countries' => 'Countries', |
124 | 126 | |
125 | 127 | 'right-centralnotice-admin' => 'Manage central notices', |
126 | 128 | 'right-centralnotice-translate' => 'Translate central notices', |
— | — | @@ -179,6 +181,7 @@ |
180 | 182 | 'centralnotice-message' => '{{Identical|Message}}', |
181 | 183 | 'centralnotice-clone-name' => '{{Identical|Name}}', |
182 | 184 | 'centralnotice-insert' => '{{Identical|Insert}}', |
| 185 | + 'centralnotice-geotargeted' => 'Used to label a checkbox which activates geotargeting', |
183 | 186 | 'right-centralnotice-admin' => '{{doc-right}}', |
184 | 187 | 'right-centralnotice-translate' => '{{doc-right}}', |
185 | 188 | 'action-centralnotice-admin' => '{{doc-action}}', |