Page MenuHomePhabricator

Parsoid doesn't support T34189 (interwiki link with localized title)
Open, MediumPublic

Description

To support T34189, the interwiki map config (computed in SiteConfig) needs to have the localized message for the interlanguage link prefix. However, this requires us to call wfMessage in SiteConfig which is a tad shady.

Instead of injecting i18n messages in the SiteConfig, we can record the message key in SiteConfig and have Parsoid generate the appropriate i18n info/wrappers for the link which will then get processed like everything else during the l10n pass.

Event Timeline

Change 837146 had a related patch set uploaded (by Subramanya Sastry; author: Subramanya Sastry):

[mediawiki/core@master] SiteConfig: Record the localizable message name for Parsoid

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

Change 837147 had a related patch set uploaded (by Subramanya Sastry; author: Subramanya Sastry):

[mediawiki/services/parsoid@master] WIP: Handle localizable title in (interwiki) language links

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

ssastry triaged this task as Medium priority.Sep 30 2022, 7:29 PM
ssastry moved this task from Needs Triage to Missing Functionality on the Parsoid board.

Change 837146 merged by jenkins-bot:

[mediawiki/core@master] SiteConfig: Remove commented out dead code

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

Similar to ToC information, we might need to figure out how to consistently mark those bits of ParserOutput which require processing during the l10n pass.

cscott renamed this task from Parsoid doesn't support T34189 to Parsoid doesn't support T34189 (interwiki link with localized title).Jul 31 2023, 3:14 PM