(bug 38720) Output the Math errors in a consistent language

Outputting as content language now.

Change-Id: I77cc38b2db129e904aaf8ada012da4f4160867fd
This commit is contained in:
Derk-Jan Hartman 2012-09-07 19:43:09 +02:00
parent 7b2b7301e0
commit dc20c51d91
1 changed files with 2 additions and 2 deletions

View File

@ -243,8 +243,8 @@ class MathRenderer {
}
function _error( $msg, $append = '' ) {
$mf = wfMessage( 'math_failure' )->escaped();
$errmsg = wfMessage( $msg )->escaped();
$mf = wfMessage( 'math_failure' )->inContentLanguage()->escaped();
$errmsg = wfMessage( $msg )->inContentLanguage()->escaped();
$source = htmlspecialchars( str_replace( "\n", ' ', $this->tex ) );
return "<strong class='error'>$mf ($errmsg$append): $source</strong>\n";
}