(bug 38720) Output the Math errors in a consistent language
Outputting as content language now. Change-Id: I77cc38b2db129e904aaf8ada012da4f4160867fd
This commit is contained in:
parent
7b2b7301e0
commit
dc20c51d91
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue