Page MenuHomePhabricator

Mobile language searcher entrypoint lists unlimited language buttons
Closed, ResolvedPublic1 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  1. Open an article available in only a few (or even just 1) languages on mobile
  2. Open the language selector
  3. Type a character that returns zero results in the search bar (e.g. "α")

What happens?:
A long list of language buttons appear that redirect the user to CX.

What should have happened instead?:
In previous ULS version (MobileFrontend LanguageSearcher) this entrypoint used a single card for CX entrypoint, so the final design of this entrypoint needs to be defined. Also, this entrypoint is not present on desktop.

Screencast from production el wiki:

QA plan:

  • Follow the screencast steps on mobile

Acceptance criteria: Only two languages (plus ellipsis) are shown.

Event Timeline

As first iteration we could follow the originally proposed design for this entrypoint in this task T265585: Empty states for the responsive language selector:

unavailable-invite.png (348×310 px, 16 KB)

One thing to consider if we are going to display a subset of the CX missing languages (e.g. 2 languages), is which languages should be displayed (e.g. languages most relevant to the user, languages most relevant to the query, etc).

Change #1309610 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] ULS rewrite: Limit languagesearcher entrypoint results to two languages

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

ngkountas triaged this task as Medium priority.
ngkountas moved this task from Ready for dev to In progress on the LPL sprints (S1 2026 July) board.

Change #1309610 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] ULS rewrite: Limit languagesearcher entrypoint results to two languages

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

Tested locally to ensure that there are only 2 languages being displayed at most.