r63947 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63946‎ | r63947 | r63948 >
Date:12:36, 19 March 2010
Author:raymond
Status:ok
Tags:
Comment:
PLURAL needs wfMsgExt. Break long lines.
Modified paths:
  • /trunk/extensions/ReplaceText/SpecialReplaceText.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ReplaceText/SpecialReplaceText.php
@@ -168,13 +168,19 @@
169169 $res = $this->doSearchQuery( $this->replacement, $this->selected_namespaces, $this->category, $this->prefix );
170170 $count = $res->numRows();
171171 if ( $count > 0 ) {
172 - $warning_msg = wfMsg( 'replacetext_warning', $wgLang->formatNum( $count ), "<tt><nowiki>{$this->replacement}</nowiki></tt>" );
 172+ $warning_msg = wfMsgExt( 'replacetext_warning', 'parsemag',
 173+ $wgLang->formatNum( $count ),
 174+ "<tt><nowiki>{$this->replacement}</nowiki></tt>"
 175+ );
173176 }
174177 } elseif ( count( $titles_for_move ) > 0 ) {
175178 $res = $this->getMatchingTitles( $this->replacement, $this->selected_namespaces, $this->category, $this->prefix );
176179 $count = $res->numRows();
177180 if ( $count > 0 ) {
178 - $warning_msg = wfMsg( 'replacetext_warning', $wgLang->formatNum( $count ), $this->replacement );
 181+ $warning_msg = wfMsgExt( 'replacetext_warning', 'parsemag',
 182+ $wgLang->formatNum( $count ),
 183+ $this->replacement
 184+ );
179185 }
180186 }
181187

Status & tagging log