Page MenuHomePhabricator

Add support for fallbacks on Special:MyLanguage
Open, MediumPublic


Currently Special:MyLanguage doesn't have fallback support if the target page does not exist. It goes to the root page by default.

It would be nice to have language fallbacks enabled, especially for languages such as zh and its variants.

See also:

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:23 AM
bzimport set Reference to bz48292.
bzimport added a subscriber: Unknown Object (MLST).
Bencmq created this task.May 9 2013, 12:08 PM

Currently [[Special:MyLanguage/Page/de]] will attempt to access pages in the following order:

  • Page/<uilang>
  • Page/de
  • Page

Not sure what the intention of linking to [[Special:MyLanguage/Page/de]] in the first place, but I propose the following:

  • Page/<uilang>
  • Page/de
  • Page/<uilang-fallback(s)>
  • Page

So that it doesn't break current links

  • Bug 50493 has been marked as a duplicate of this bug. ***

btw It's mentioned in bug 50493 that the URL param &variant= should be used.

So the chain should be:

  • Page/<uilang>
  • Page/<parentlang-of-uilang-with-variant=uilang> (This page is guaranteed to be un uilang)
  • Page/de
  • Page/<uilang-fallback(s)>
  • Page

I would move Page/de just before Page. Would you be able to come up with a patch that is backwards compatible to MW 1.20?

(In reply to comment #4)

I would move Page/de just before Page. Would you be able to come up with a
patch that is backwards compatible to MW 1.20?

Copy the code of getParentLanguage to Extension:Translate?

or just ignore this item when that function is not there?

(In reply to comment #4)

I would move Page/de just before Page.

Note than en is always in the fallback chain.

I'm moving this back to MediaWiki core as the special page was moved there.

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 28 2015, 7:31 PM
Kbrown added a subscriber: Kbrown.Jan 27 2016, 3:50 PM

Bumping this gently, since this type of fallback has been requested by community members on Meta this week (in the context of the current workaround being somewhat unintuitive and people being redirected back to English if it's not done exactly right). Any chance someone could make this happen?

Change 266785 had a related patch set uploaded (by BryanDavis):
Support language fallbacks for Special:MyLanguage

bd808 updated the task description. (Show Details)Jan 27 2016, 10:41 PM
bd808 set Security to None.
Nikerabbit removed a subscriber: wikibugs-l-list.
Krinkle updated the task description. (Show Details)Jul 7 2016, 7:53 PM

Change 266785 merged by jenkins-bot:
[mediawiki/core@master] Support language fallbacks for Special:MyLanguage

Amire80 moved this task from Untriaged to Fallback on the I18n board.Mar 18 2018, 2:08 PM


Is this done?

Still unlucky, by clicking Meta:About in Meta:Sandbox (oldid=18098392) URL still navigated me to the English page rather than Meta:About/zh.

This bug hasn't been fixed for more than SIX YEARS?

It does happen still now. Fo example, my ui language is zh-cn, which is a variant of zh. But Special:MyLanguage doesn't redirect to the zh translation with the cn variant, which means I should click "中文" in the language box and set the variant from "不转换" (not convert) to "大陆简体" (zh-cn).

bd808 removed a subscriber: bd808.Sep 12 2019, 4:19 PM
Aklapper added a comment.EditedSep 13 2019, 12:28 PM

@SolidBlock: Age of a task is entirely irrelevant. Please see for more information - thanks.

Xiplus added a subscriber: Xiplus.Sep 22 2019, 11:28 AM