Page MenuHomePhabricator

SecurePoll content area needs lang/dir attributes
Open, HighPublic

Description

SecurePoll has its own auth and i18n system which uses the language the user specified in their authentication source domain. It doesn't override $wgLang so typically the sidebar will be in English whereas the content area will be in the user's language.

Users voting with an RTL language will see a broken and unreadable intro and voting form due to the incorrect embedding direction.

MediaWiki has a concept of page content language which basically does what we want, except that there is some associated tech debt which makes it difficult to use from a special page.

Event Timeline

Change 714439 had a related patch set uploaded (by Jforrester; author: Tim Starling):

[mediawiki/extensions/SecurePoll@master] Set the context user language to the voter language

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

Change 714439 merged by jenkins-bot:

[mediawiki/extensions/SecurePoll@master] Set the context user language to the voter language

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

Huji subscribed.

Will this patch eliminate the need to change the votewiki's language for fawiki elections?

jrbs triaged this task as High priority.Sep 23 2022, 10:29 PM
jrbs moved this task from Backlog to Needs evaluation on the MediaWiki-extensions-SecurePoll board.

Evaluation:

Has already merged patcheset. Still open. Not sure why. Given the description (SecurePoll has own auth an i18n) an judging from the code this will probably require some refactoring. Medium to high difficulty. More than a week.