Page MenuHomePhabricator

Math error showing in hebrew
Closed, ResolvedPublic

Description

math error

Go to https://es.wikipedia.org/w/index.php?title=Usuario:Matanya/test&oldid=58272475 with "render as MathJax" as your math preference.
It is showing me an error in hebrew (it doesn't like the \mbox), despite not having any preference set to that language.


Version: master
Severity: normal

Attached:

texvc_error.png (160×902 px, 19 KB)

Details

Reference
bz38720

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:04 AM
bzimport added a project: Math.
bzimport set Reference to bz38720.
bzimport added a subscriber: Unknown Object (MLST).

Sorry, "render as PNG" as your math preference.

The error message in question is "Failed to parse (lexing error):"
A combination of math-failure and math_lexing_error.

Code:
https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/Math.git;a=blob;f=Math.body.php

Do we usually add these inline errors in content language then ?

It's not necessarily bad to show them in user language. But if you do it that way, then it needs to go through ParserOptions, so it's not improperly cached. Note that neither the content language or the user language was set to hebrew, yet the error was shown in that language.