Page MenuHomePhabricator

Fix $wgPageTranslationLanguageList = 'sidebar-fallback'
Closed, ResolvedPublic2 Estimated Story Points

Description

$wgPageTranslationLanguageList = 'sidebar-fallback' option is not currently usable due to T204797: [Regression 1.32.0-wmf.22] ParserOutput::getLanguageLinks returns invalid values (Undefined index from ApiParse and LinksUpdate). It would be nice to be able to use this option to allow incremental migration of language links to a new location.

Event Timeline

Change 976928 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):

[mediawiki/extensions/Translate@master] PageTranslation: Switch from dummy language link to a page prop

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

Nikerabbit set the point value for this task to 2.
Nikerabbit changed the task status from Open to In Progress.Nov 23 2023, 8:48 AM

Change 976928 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] PageTranslation: Switch from dummy language link to a page prop

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

(metawiki)> select count(*) from page_props where pp_propname = 'translate-has-languages-tag' limit 10\G
*************************** 1. row ***************************
count(*): 8639

The new page property is being added to the pages when they are edited. A maintenance script can be run in the future to update all pages. This is the extend this can be tested right now.