Page MenuHomePhabricator

Wikidata interface stored in cache using wrong language code
Closed, ResolvedPublic

Description

Steps to reproduce

  1. Set UI language to German in prefs
  2. Go to https://www.wikidata.org/wiki/Q1833362 (or https://www.wikidata.org/wiki/Q1833362?uselang=?? to simplify making an edit in another language, where ?? can be any language code.)
  3. Edit the page (as it is a species, adding 'Myotis ciliolabrum' as the label to any language is a sensible edit)
  4. Visit https://www.wikidata.org/wiki/Q1833362?uselang=en

Expected results:
The UI in step 4 should always be in English.

Actual results:
Parts of the UI are in the UI language of the last contributor to the page; in this case, German.

This is happening to many edits. Log out and click through the items on https://www.wikidata.org/wiki/Special:RecentChanges which are from someone whose UI language is likely different from 'en'.


Version: unspecified
Severity: major

Details

Reference
bz60715

Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 22 2014, 3:02 AM
bzimport set Reference to bz60715.
bzimport added a subscriber: Unknown Object (MLST).

Ah, more steps to see the problem better

  1. Change UI language to English
  2. Purge the page https://www.wikidata.org/wiki/Q1833362?action=purge

The page UI will be in English again.

Change 110694 had a related patch set uploaded by Hoo man:
Prevent WikiPage::doEditContent from adding to the ParserCache

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

The above is only a workaround, not really a good solution.

See also bug 59693 which is probably caused by the same root problem.

Found a slightly better solution now... thanks to the ContentHandler.

Change 110694 merged by Addshore:
Add EntityHandler::makeParserOptions

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

Change 110935 had a related patch set uploaded by Addshore:
Add EntityHandler::makeParserOptions

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

Patch has been approved, I'll organize a deploy in the next couple of hours.

Change 110935 merged by Hoo man:
Add EntityHandler::makeParserOptions

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