Page MenuHomePhabricator

When searching for languages allow searching in the current language
Closed, ResolvedPublic2 Estimated 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

Related Objects

Event Timeline

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).