Index: trunk/extensions/ParserFunctions/ParserFunctions.php |
— | — | @@ -589,12 +589,13 @@ |
590 | 590 | |
591 | 591 | // Generates error message. Called when string is too long. |
592 | 592 | private function tooLongError() { |
593 | | - global $wgStringFunctionsLimit; |
| 593 | + global $wgStringFunctionsLimit, $wgContLang; |
594 | 594 | wfLoadExtensionMessages( 'ParserFunctions' ); |
595 | 595 | |
596 | 596 | return '<strong class="error">' . |
597 | | - wfMsgForContent( "pfunc_string_too_long", |
598 | | - htmlspecialchars( $wgStringFunctionsLimit ) ) . |
| 597 | + wfMsgExt( 'pfunc_string_too_long', |
| 598 | + array( 'escape', 'parsemag' ), |
| 599 | + $wgContLang->formatNum( $wgStringFunctionsLimit ) ) . |
599 | 600 | '</strong>'; |
600 | 601 | } |
601 | 602 | |