Page MenuHomePhabricator

TemplateData: Parser output stuck in language of user who last saved
Closed, ResolvedPublic

Description

https://en.wikipedia.org/wiki/Template:Cite_web/doc?uselang=en#Template_data

and

https://en.wikipedia.org/wiki/Template:Cite_web/doc#Template_data

Both show the interface messages in French.

It works fine when userlang is not the default language of the wiki though, e.g. https://en.wikipedia.org/wiki/Template:Cite_web/doc?uselang=de#Template_data shows the German version.


Version: unspecified
Severity: normal

Details

Reference
bz52419

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:44 AM
bzimport added a project: TemplateData.
bzimport set Reference to bz52419.
Krinkle created this task.Aug 1 2013, 8:55 PM

As I said on IRC, you have to use the language from the ParserOptions, not from the request context, since on save, the parse is done with default options, for link update purposes. So the language that the parser cache is keyed by won't match the user request language.

Change 77222 merged by jenkins-bot:
Use ParserOptions language instead of RequestContext language

https://gerrit.wikimedia.org/r/77222