Last modified: 2014-10-16 10:44:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T50292, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48292 - Add support for fallbacks on Special:MyLanguage
Add support for fallbacks on Special:MyLanguage
Status: NEW
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.24rc
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: i18n
: 50493 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-09 12:08 UTC by Benjamin Chen
Modified: 2014-10-16 10:44 UTC (History)
14 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Benjamin Chen 2013-05-09 12:08:37 UTC
Currently Special:MyLanguage doesn't have fallback support of 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.
Comment 1 Benjamin Chen 2013-05-09 12:35:25 UTC
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
Comment 2 Liangent 2013-07-01 10:26:32 UTC
*** Bug 50493 has been marked as a duplicate of this bug. ***
Comment 3 Liangent 2013-07-01 10:39:52 UTC
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
Comment 4 Niklas Laxström 2013-07-01 11:13:21 UTC
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?
Comment 5 Liangent 2013-07-01 11:22:06 UTC
(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?
Comment 6 Liangent 2013-07-01 11:33:14 UTC
(In reply to comment #4)
> I would move Page/de just before Page.

Note than en is always in the fallback chain.
Comment 7 Niklas Laxström 2014-09-02 08:07:54 UTC
I'm moving this back to MediaWiki core as the special page was moved there.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links