mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-15 10:59:28 +00:00
PLURAL needs wfMsgExt. Break long lines.
This commit is contained in:
parent
96ae4b254d
commit
d25551df5b
Notes:
Raimond Spekking
2010-03-19 12:36:01 +00:00
|
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue