Page MenuHomePhabricator

LanguageOverlay when loaded via ajax does not show variant list
Closed, ResolvedPublic

Description

/w/api.php?format=json&action=query&prop=langlinks&llurl=true&lllimit=max&titles=San_Francisco
can only be used to get languages for a given page however doesn't return language links.

This blocks mobile from generating a list of languages dynamically via JavaScript and populating Special:MobileLanguages with variants.

Make it so!


Version: unspecified
Severity: normal

Details

Reference
bz58988

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:28 AM
bzimport set Reference to bz58988.
bzimport added a subscriber: Unknown Object (MLST).

Andre, Quim this would be a good Google summer code in task. Max - I'm not sure what is the right component for this API?

bingle-admin wrote:

Prioritization and scheduling of this bug is tracked on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1585

m4tx added a comment.Dec 27 2013, 1:05 PM

Can you provide more informations about the bug? What do you mean by "language links"? And what do you mean by "language variants"?

if you look at https://sr.m.wikipedia.org/wiki/San_Francisco and click the language button at the bottom of the page you will see there are 2 lists - one with variants (at the top with 3 items) and one with languages.

Although actually there should only be two; the first one should be hidden since it is the current variant.

I'm about to upload a patch for this (to core).

Then once that's merged I'll reimplement the functionality in MobileFrontend (which perhaps should be a separate "task" on GCI? I don't know).

Change 104128 had a related patch set uploaded by Theopolisme:
Provide language variant data via the api

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

Change 104128 abandoned by Theopolisme:
Provide language variant data via the api

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

Change 104168 had a related patch set uploaded by Theopolisme:
Add support for language variants in LanguageOverlay

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

Change 104168 merged by jenkins-bot:
Add support for language variants in LanguageOverlay

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