Page MenuHomePhabricator

Language search does not show some prefix matches
Open, MediumPublic

Description

Looking at the initial implementation of the language selector (T253303) available for Section Translation at test wiki, when searching for a source language the list of languages is not always showing the expected results. For example, searching for "Id" does not show "Ido" in the results.

Ido is in the list and it is shown in the results when searching for other terms such as "I" or "Ido", but not for "Id". This may be related to the way multiple search criteria are currently combined (since "ID" is the ISO code for Indonesian).

An example of the results shown in each case.

Searching for "I" suggests "Ido"Searching for "id" does not show "Ido"Searching for "Ido" shows "Ido" again
test.m.wikipedia.org_wiki_Special_ContentTranslation(iPhone 6_7_8) (2).png (1×750 px, 81 KB)
test.m.wikipedia.org_wiki_Special_ContentTranslation(iPhone 6_7_8) (3).png (1×750 px, 34 KB)
test.m.wikipedia.org_wiki_Special_ContentTranslation(iPhone 6_7_8) (4).png (1×750 px, 31 KB)