Page MenuHomePhabricator

Function view: Content isn't flipped and so displays in the wrong order on dir=rtl context
Closed, DuplicatePublicBUG REPORT

Description

Looks like something is forcing dir=ltr on the <div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr">?

Event Timeline

Jdforrester-WMF changed the subtype of this task from "Task" to "Bug Report".Jun 2 2023, 7:31 PM
Nikki subscribed.

The language/direction on .mw-body-content refers to the page language, not the interface language. I assume there's no handling to override that yet and it should probably be doing what Wikidata does.

It looks like the two functions here (getPageViewLanguage and getPageLanguage) are how Wikidata overrides it: https://gerrit.wikimedia.org/g/mediawiki/extensions/Wikibase/+/d82d063834e6a190b7fae8e1a366021cd7f0d4a1/repo/includes/Content/EntityHandler.php#525

I'm just going to merge this into T268678 as that solves the principal issue here.