Page MenuHomePhabricator

Use interface language direction for printfooter
Closed, ResolvedPublicBUG REPORT

Description

Right now, the print footer is shown in the direction of the article's language, since it's included in mw-body-content.

But since it's an interface language, it can appear in the wrong direction if the interface language is not the same as the article language.

image.png (300×838 px, 22 KB)

Event Timeline

Change 907966 had a related patch set uploaded (by BrandonXLF; author: BrandonXLF):

[mediawiki/core@master] Use user language for printSource wrapper

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

@Jdlrobson I noticed that lang, dir, and mw-content-dir are used quite a few times throughout MediaWiki and extensions. Would it be beneficial to add a helper function like Html::languageWrap that creates a div with the required attributes?

Not sure if it makes sense to have a generic helper function at this point, but for Skins you can make use of the existing Skin::getUserLanguageAttributes method. Thanks for the patch!

Change 907966 merged by jenkins-bot:

[mediawiki/core@master] Use user language for printSource wrapper

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