Page MenuHomePhabricator

When searching for languages allow searching in the current language
Closed, ResolvedPublic2 Story Points

Description

As a user reading English Wikipedia
I would like to search for "French" and "Spanish" rather than be required to remember I need to search for the language in the destination language "francais" or "espanol"
So that I can get to the page I want faster and am not required to know the destination language
(A good example of this is when sharing words in Chinese, I should not need to know how to use chinese characters and the word for Chinese)

Implementation details:
This can easily be achieved by passing in the llinlanguagecode parameter where llinlanguagecode is the language currently being used:
https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&prop=langlinks&meta=siteinfo&titles=Barack+Obama&llprop=autonym%7Clangname&llinlanguagecode=en&lllimit=500

Related: T137680

Details

Related Gerrit Patches:
mediawiki/extensions/MobileFrontend : masterAllow searching for language name as well as autonym

Related Objects

Event Timeline

Jdlrobson created this task.Jul 8 2016, 9:39 PM
Jdlrobson updated the task description. (Show Details)
Jdlrobson set the point value for this task to 2.

Change 299012 had a related patch set uploaded (by Jdlrobson):
Allow searching for language name as well as autonym

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

Change 299012 merged by jenkins-bot:
Allow searching for language name as well as autonym

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

To test please visit http://en.m.wikipedia.beta.wmflabs.org/wiki/Lang#/languages and search for 'Uzbek'. You should see "oʻzbekcha/ўзбекча" in the result. Compare it with https://en.m.wikipedia.org/wiki/Book#/languages where you won't see any results when you type "uzbek" (note that the Uzbek language is in the list of languages).

dr0ptp4kt closed this task as Resolved.Jul 15 2016, 11:04 PM
dr0ptp4kt added a subscriber: dr0ptp4kt.

LGTM