Page MenuHomePhabricator

Fix ULS language data search index for Javanese
Closed, ResolvedPublic

Description

A contributor raised a usability concern on GitHub:

Why can't I find jv-Java by typing ‘Jawa’ in the language list? (I had to type ‘java’). It's not natural for our speakers and users to find Javanese keyboards by typing ‘Jawa’, then ask them to find jv-Java keyboards by typing ‘Java’.

This creates a barrier for native speakers, who intuitively search using "Jawa". When using the ULS (Universal Language Selector) language list, typing "Jawa" should should match both scripts and return both input options:

  • jv (Javanese in Latin script) - Jawa
  • jv-java (Javanese in Javanese script) - ꦗꦮ

What needs to be done:
Update the language search index in the ULS extension so that "Jawa" returns both relevant input methods. Add "Jawa" as a search alias for both jv and jv-java entries in:

data/LanguageNameSearchData.php in extensions/UniversalLanguageSelector.

This change would help improve search behavior and script discoverability for native users.

Event Timeline

Thank you for tagging this task with good first task for Wikimedia newcomers!

Newcomers often may not be aware of things that may seem obvious to seasoned contributors, so please take a moment to reflect on how this task might look to somebody who has never contributed to Wikimedia projects.

A good first task is a self-contained, non-controversial task with a clear approach. It should be well-described with pointers to help a completely new contributor, for example it should clearly pointed to the codebase URL and provide clear steps to help a contributor get setup for success. We've included some guidelines at https://phabricator.wikimedia.org/tag/good_first_task/ !

Thank you for helping us drive new contributions to our projects <3

I'm a newcomer here, so I'm gonna poke around and try get it done!

I went to the link provided but all I can see is a jumble of I think other issues on this code triage place? I suppose I open a task similarly to here? This phabricator stuff is making my head spin....

@Crystalite13 Hi! Thanks for your interest! Please see "What needs to be done:" in the task description. You don't need to create a new Phabricator task.

I dont mean to open a new task here, as the What needs to be done section states to edit the extension but I am not sure how

Change #1179277 had a related patch set uploaded (by Shreyapedia; author: Shreyapedia):

[mediawiki/extensions/UniversalLanguageSelector@master] T393746: Add 'Jawa' aliases for Javanese

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

https://gerrit.wikimedia.org/r/c/mediawiki/extensions/UniversalLanguageSelector/+/1179277

Hi, I’ve updated the patch based on the feedback. Could you please take another look when you get a chance? Thanks

Change #1180091 had a related patch set uploaded (by Shreyapedia; author: Shreyapedia):

[mediawiki/extensions/UniversalLanguageSelector@master] T393746: Add 'Jawa' aliases for Javanese

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

Change #1180091 had a related patch set uploaded (by Pppery; author: Shreyapedia):

[mediawiki/extensions/UniversalLanguageSelector@master] Add 'Jawa' aliases for Javanese

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

Hi @srishakatux , I've updated the patch based on your feedback:

The updated patch is ready for review at: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/UniversalLanguageSelector/+/1180091

Thank you for your guidance!

Change #1180091 had a related patch set uploaded (by Shreyapedia; author: Shreyapedia):

[mediawiki/extensions/UniversalLanguageSelector@master] T393746: Add 'Jawa' aliases for Javanese

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