Last modified: 2014-11-17 11:06:41 UTC
Maybe the same issue as bug 66158.
Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/2gdmj8Mz
What does this bug mean? Could you add steps including URLS to replicate with expected behaviour?
Issue one: URL: https://m.mediawiki.org/wiki/Bugzilla/zh#/languages A variant list of Chinese is expected but it's not there. Issue two: URL: https://m.mediawiki.org/wiki/Special:MobileLanguages/Bugzilla/zh A variant list is there but it's labeled as "English variants", not Chinese.
Thanks Liagent, this is much clearer now :) I think you are right and this is the same underlying problem as the other bug. Do you mind if we close the other bug 66158 to avoid fragmented conversations?
(In reply to Jon from comment #4) > Do you mind if we close the other bug 66158 to avoid fragmented > conversations? Go for it
*** Bug 66158 has been marked as a duplicate of this bug. ***
Issue one: This is generated by the API response from https://m.mediawiki.org/w/api.php?action=query&format=json&meta=siteinfo&siprop=general%7Clanguages&prop=langlinks&llurl=true&lllimit=max&titles=Bugzilla%2Fzh I'm not sure why variants not included.. :-( Issue two: Looking into this, the titles simply use 'this->msg(' and I'm not sure how we can set the page content language on a special page.. :-/
WIth issue two you mean https://bugzilla.wikimedia.org/show_bug.cgi?id=66591 ??? Then we can add statically to the msg( the text of the title object, or? https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/blob/master/includes/specials/SpecialMobileLanguages.php#L132
(In reply to Florian from comment #8) > WIth issue two you mean https://bugzilla.wikimedia.org/show_bug.cgi?id=66591 > ??? > > Then we can add statically to the msg( the text of the title object, or? > https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/blob/master/ > includes/specials/SpecialMobileLanguages.php#L132 No. On https://m.mediawiki.org/wiki/Special:MobileLanguages/Bugzilla/zh?uselang=en there is: <h2 id="mw-mf-language-variant-header">English variants</h2> which should be written as "Chinese variants".
Ah, ok, sorry for misunderstanding! :)
(In reply to Jon from comment #7) > Issue one: > This is generated by the API response from > https://m.mediawiki.org/w/api. > php?action=query&format=json&meta=siteinfo&siprop=general%7Clanguages&prop=la > nglinks&llurl=true&lllimit=max&titles=Bugzilla%2Fzh > > I'm not sure why variants not included.. :-( meta=siteinfo returns info about the site (so variants of the content language of that site), not about given titles... I'm afraid there's no API emitting variants of a given title.
(In reply to Jon from comment #7) > Issue two: > Looking into this, the titles simply use 'this->msg(' and I'm not sure how > we can set the page content language on a special page.. :-/ Okay so I had a look at that $this->msg() so there is issue three: https://m.mediawiki.org/wiki/Special:MobileLanguages/Bugzilla/zh?uselang=zh-cn This page says "English变体" instead of "英文变体". Without fixing this, it will say either "中文 variants" or "Chinese变体" after issue two is resolved.