Index: trunk/extensions/ReplaceText/SpecialReplaceText.php |
— | — | @@ -9,7 +9,6 @@ |
10 | 10 | */ |
11 | 11 | public function __construct() { |
12 | 12 | parent::__construct( 'ReplaceText', 'replacetext' ); |
13 | | - wfLoadExtensionMessages( 'ReplaceText' ); |
14 | 13 | } |
15 | 14 | |
16 | 15 | function execute( $query ) { |
— | — | @@ -146,6 +145,7 @@ |
147 | 146 | if ( ! $category_title->exists() ) $bad_cat_name = true; |
148 | 147 | } |
149 | 148 | if ( $bad_cat_name ) { |
| 149 | + //FIXME: raw html message |
150 | 150 | $wgOut->addHTML( wfMsg( 'replacetext_nosuchcategory', $sk->link( $category_title, ucfirst( $this->category ) ) ) ); |
151 | 151 | } else { |
152 | 152 | if ( $this->edit_pages ) |
— | — | @@ -154,6 +154,7 @@ |
155 | 155 | $wgOut->addWikiMsg( 'replacetext_nomove', "<tt><nowiki>{$this->target}</nowiki></tt>" ); |
156 | 156 | } |
157 | 157 | // link back to starting form |
| 158 | + //FIXME: raw html message |
158 | 159 | $wgOut->addHTML( '<p>' . $sk->makeKnownLinkObj( $this->getTitle(), wfMsg( 'replacetext_return' ) ) . '</p>' ); |
159 | 160 | } else { |
160 | 161 | // show a warning message if the replacement string |
— | — | @@ -207,8 +208,7 @@ |
208 | 209 | if ( is_null( $warning_msg ) ) { |
209 | 210 | $wgOut->addWikiMsg( 'replacetext_docu' ); |
210 | 211 | } else { |
211 | | - $actual_warning_msg = wfMsg( $warning_msg ); |
212 | | - $wgOut->addWikiText("<div class=\"errorbox\">$actual_warning_msg</div><br clear=\"both\" />"); |
| 212 | + $wgOut->wrapWikiMsg( "<div class=\"errorbox\">\n$1\n</div><br clear=\"both\" />", $warning_msg ); |
213 | 213 | } |
214 | 214 | $wgOut->addHTML( '<table><tr><td style="vertical-align: top;">' ); |
215 | 215 | $wgOut->addWikiMsg( 'replacetext_originaltext' ); |
— | — | @@ -236,7 +236,8 @@ |
237 | 237 | // search interface was added in MW 1.16 - check for the |
238 | 238 | // presence of the 'powersearch-togglelabel' message to see |
239 | 239 | // if we can use this functionality here |
240 | | - if ( ! wfEmptyMsg( 'powersearch-togglelabel', wfMsg( 'powersearch-togglelabel' ) ) ) { |
| 240 | + // FIXME: this extension requires 1.16 now? |
| 241 | + if ( !wfEmptyMsg( 'powersearch-togglelabel', wfMsg( 'powersearch-togglelabel' ) ) ) { |
241 | 242 | $wgOut->addHTML( |
242 | 243 | Xml::tags( |
243 | 244 | 'div', |
— | — | @@ -268,6 +269,7 @@ |
269 | 270 | Xml::element( 'div', array( 'class' => 'divider' ), '', false ) . |
270 | 271 | "$tables\n</fieldset>" |
271 | 272 | ); |
| 273 | + //FIXME: raw html messages |
272 | 274 | $optional_filters_label = wfMsg( 'replacetext_optionalfilters' ); |
273 | 275 | $category_search_label = wfMsg( 'replacetext_categorysearch' ); |
274 | 276 | $prefix_search_label = wfMsg( 'replacetext_prefixsearch' ); |