Page MenuHomePhabricator

Clickable language menu options
Closed, ResolvedPublicFeature

Description

Feature summary: Currently, to select a language from the language selector (top right), the user must: 1) drop down the language menu; 2) select the option corresponding to their preferred language; 3) click the "Select" button.

Step 3 is not immediately intuitive, given that many websites today take you directly to the desired URL after completing step 2.

This feature should do the following:

  • For users who have JavaScript enabled, the "Select" button will be hidden, and clicking on the language option will take you directly to Paulina's interface in that language.
  • For users who have JavaScript disabled, everything will appear as it does now. (This is important because if there is no "Select" button and the user has JavaScript disabled, the functionality is broken).

Benefits: This feature will make the language menu faster and more intuitive.

Event Timeline

AkashKr_282 subscribed.

I want to work on this task.

Hello,

I’m working on task T402301 (Clickable language menu options), and I’d like to start making the required changes. However, I couldn’t find the exact Git repository URL where this code resides. Could you please provide the repository link or the project name so I can clone it and begin working?

Thank you!

Hi, @AkashKr_282 Here you can find more information about the Paulina tool and the link to the repository: https://phabricator.wikimedia.org/project/profile/7320/
Here you can find the technical documentation: https://www.wikidata.org/wiki/Wikidata:Tools/Paulina/Software_Documentation
Feel free to ask anything you need. Thank you!

Hi, @AkashKr_282 have you made progress on this task? If you are no longer planning to work on it please remove yourself as the asignee as other contrubutors may soon want to pick it up. Thanks a lot for your help!

Hello, I would like to work on this task please.

Great, Nurah, it has been assigned to you.

@Pepe_piton I am done with this task and created a merge request for it. I updated the language menu so users can switch languages by clicking directly on an option, without needing to press the “Select” button when JavaScript is enabled, while preserving the button functionality when JavaScript is disabled on the browser.

Excellent job, @Nurah_Wakili! I tried it with and without Javascript and it works perfectly!

I merged it and it is already online on https://paulina.toolforge.org