Last modified: 2013-08-02 19:55:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54419, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52419 - TemplateData: Parser output stuck in language of user who last saved
TemplateData: Parser output stuck in language of user who last saved
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
TemplateData (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Krinkle
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-01 20:55 UTC by Krinkle
Modified: 2013-08-02 19:55 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Krinkle 2013-08-01 20:55:08 UTC
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.
Comment 1 Tim Starling 2013-08-01 22:26:28 UTC
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.
Comment 2 Bartosz Dziewoński 2013-08-01 22:50:06 UTC
https://gerrit.wikimedia.org/r/#/c/77222/ by Krinkle.
Comment 3 Gerrit Notification Bot 2013-08-02 19:33:22 UTC
Change 77222 merged by jenkins-bot:
Use ParserOptions language instead of RequestContext language

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links