PLURAL needs wfMsgExt. Break long lines.

This commit is contained in:
Raimond Spekking 2010-03-19 12:36:01 +00:00
parent 96ae4b254d
commit d25551df5b
Notes: Raimond Spekking 2010-03-19 12:36:01 +00:00

View file

@ -168,13 +168,19 @@ class ReplaceText extends SpecialPage {
$res = $this->doSearchQuery( $this->replacement, $this->selected_namespaces, $this->category, $this->prefix );
$count = $res->numRows();
if ( $count > 0 ) {
$warning_msg = wfMsg( 'replacetext_warning', $wgLang->formatNum( $count ), "<tt><nowiki>{$this->replacement}</nowiki></tt>" );
$warning_msg = wfMsgExt( 'replacetext_warning', 'parsemag',
$wgLang->formatNum( $count ),
"<tt><nowiki>{$this->replacement}</nowiki></tt>"
);
}
} elseif ( count( $titles_for_move ) > 0 ) {
$res = $this->getMatchingTitles( $this->replacement, $this->selected_namespaces, $this->category, $this->prefix );
$count = $res->numRows();
if ( $count > 0 ) {
$warning_msg = wfMsg( 'replacetext_warning', $wgLang->formatNum( $count ), $this->replacement );
$warning_msg = wfMsgExt( 'replacetext_warning', 'parsemag',
$wgLang->formatNum( $count ),
$this->replacement
);
}
}