Page MenuHomePhabricator

Allow language selector search in any language on Query Service UI
Closed, ResolvedPublic8 Estimated Story Points

Description

As a Query Service user, I want to be able to find a UI language to switch to not just by searching for its autonym, but also for its name in any other language.

The change will increase findability and avoid frustrating users' expectations in case they're not aware of the fact that they need to use the autonym instead of, for example, their current UI language.

Problem:

  1. open the language selector
  2. type the word "German"
  3. find no matching results
  4. delete input
  5. type "Deutsch"
  6. find matching result

What should happen:

  1. open the language selector
  2. type the word "German" or any other translation of the language's name
  3. find matching result as "Deutsch"

The language selector should still only show autonyms e.g. when searching for "German" the result is given as "Deutsch" see: https://phabricator.wikimedia.org/T345841#9382451

BDD
GIVEN a user wants to switch the UI language of the Query Service
AND they use the Language selector to pick a new language
WHEN they enter any of the translations of said language
THEN the Language selector provides the language's autonym as a matching result

Acceptance criteria:

  • The Language selector provides autonym matches for searches made in any language

Event Timeline

Arian_Bozorg renamed this task from Allow language selector search in UI language on Query Service UI to Allow language selector search in any language on Query Service UI.Jan 17 2024, 10:57 AM
Arian_Bozorg updated the task description. (Show Details)

Task Breakdown Notes

Query service actually has jQuery ULS library, we need to give the API URL for searching languages. Example from mediawiki
Language selector: https://gerrit.wikimedia.org/r/plugins/gitiles/wikidata/query/gui/+/refs/heads/master/wikibase/queryService/ui/i18n/LanguageSelector.js

Potential Plan of Action

  1. Add API URL to the ULS library.
  2. Test the component and wrap it up.

Change 1005784 had a related patch set uploaded (by Guergana Tzatchkova; author: Guergana Tzatchkova):

[wikidata/query/gui@master] Allow language selector search in any language on Query Service UI

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

Change 1005784 merged by jenkins-bot:

[wikidata/query/gui@master] Allow language selector search in any language on Query Service UI

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

Change 1007560 had a related patch set uploaded (by Noa wmde; author: WDQSGuiBuilder):

[wikidata/query/gui-deploy@production] Merging from 5f981c0bc88f0033a55bc05327c41bd58f98c95e

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

Change 1007560 merged by Noa wmde:

[wikidata/query/gui-deploy@production] Merging from 5f981c0bc88f0033a55bc05327c41bd58f98c95e

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

This is now deployed and ready to be verified on production.

Thanks so much!

Looks good to me :)