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:
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:
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Support language fallbacks for Special:MyLanguage | mediawiki/core | master | +44 -6 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
In Progress | Winston_Sung | T286291 Clean up, merge and update zh/zh-* translations | |||
In Progress | Winston_Sung | T296188 Clean up, merge, update zh/zh-* translations and update zh-related language fallback chains in mediawiki/core | |||
Open | None | T106131 MediaWiki.org should redirect user to appropriate Chinese variant and show them based on preferences | |||
Resolved | Nikerabbit | T50292 Add support for fallbacks on Special:MyLanguage | |||
Resolved | Winston_Sung | T278639 Add language redirects or backwards fallbacks for Special:MyLanguage | |||
Resolved | Winston_Sung | T182485 zh falls back to zh-hans, why? | |||
Resolved | BUG REPORT | Winston_Sung | T333187 Special:MyLanguage: Base page language being ignored / skipped from the language fallback chain |
Currently [[Special:MyLanguage/Page/de]] will attempt to access pages in the following order:
Not sure what the intention of linking to [[Special:MyLanguage/Page/de]] in the first place, but I propose the following:
So that it doesn't break current links
btw It's mentioned in bug 50493 that the URL param &variant= should be used.
So the chain should be:
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.
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
Change 266785 merged by jenkins-bot:
[mediawiki/core@master] Support language fallbacks for Special:MyLanguage
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).
@SolidBlock: Age of a task is entirely irrelevant. Please see https://www.mediawiki.org/wiki/Bug_management/Development_prioritization for more information - thanks.
This is actually done. Copying my response from https://gerrit.wikimedia.org/r/c/mediawiki/core/+/675291:
The underlying cause, which makes Chinese not work here, is that none of the Chinese languages include zh in their fallbacks. Adding zh to their fallback chains should be a simple fix, assuming there aren't any negative side effects.
We can deal with that in the context of T278639: Add language redirects or backwards fallbacks for Special:MyLanguage or T182485: zh falls back to zh-hans, why?.