diff --git a/SpecialReplaceText.php b/SpecialReplaceText.php
index d81e3365..b8552457 100644
--- a/SpecialReplaceText.php
+++ b/SpecialReplaceText.php
@@ -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 ), "{$this->replacement}" );
+ $warning_msg = wfMsgExt( 'replacetext_warning', 'parsemag',
+ $wgLang->formatNum( $count ),
+ "{$this->replacement}"
+ );
}
} 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
+ );
}
}