Page MenuHomePhabricator

Global language selector review
Open, MediumPublic

Description

  1. Would it be possible to immediately focus the search input field right after clicking on the button? See T343202.

CleanShot 2023-07-31 at 14.44.52.gif (188×800 px, 72 KB)

  1. After switching the language there's a tooltip being displayed "randomly" on the page. It probably comes from the ULS. See T343203.

image.png (328×926 px, 33 KB)

  1. After picking a different language, if I click on a link (e.g. Wikifunctions logo in the top left corner), on destination my language selection has been reset. See T343205.
    • And there's the same ULS tooltip being displayed "randomly" on the page.
  1. The language selectors loads some instants after the rest of the page. See T343210.
  1. When selecting Egyptian Arabic (arz), if I try to look for Arabic (ar) is not shown in the results. See T343207.

image.png (940×1 px, 107 KB)

Optional

I. (Optional) Is there a way to get "smarter" search results? See T343208.

  • Order alphabetically?
  • Better match?

image.png (926×552 px, 70 KB)

II. (Optional) Is there a way to displayed UN6 as suggested languages? See T343209.

image.png (600×2 px, 86 KB)

Related Objects

Event Timeline

Some additional notes (I continue the numbering order from the task description to make referring to the issues easier):

Filed as T343170 (7) There are some minor misalignment for global language selector (compared with the gls on wikidata)

wikifunctions (Vector 2022)wikidata (Vector 2022)
Screen Shot 2023-07-31 at 12.26.33 PM.png (414×1 px, 88 KB)
Screen Shot 2023-07-31 at 12.26.04 PM.png (366×1 px, 53 KB)
Screen Shot 2023-07-31 at 12.28.53 PM.png (346×1 px, 80 KB)

(8) The global language selector once selected changes the lang for all pages. e.g. switching to German on a wikidata random page switches Special:Watchlist to German too. It's not the case for wikifunctions, each page has to be switched to a different language separately.

(9) On wikidata/commons the global language selector accepts lang codes and displays language labels in their respective language script.

Screen Shot 2023-07-31 at 12.47.44 PM.png (870×1 px, 148 KB)
Screen Shot 2023-07-31 at 12.47.20 PM.png (876×1 px, 131 KB)

(10) The global language selector on wikidata has options that allows users to select language for the display and/or the input.

Screen Shot 2023-07-31 at 12.47.44 PM.png (870×1 px, 154 KB)
Screen Shot 2023-07-31 at 12.50.37 PM.png (672×1 px, 127 KB)

Filed as T343172 (11) The lang code label is placed too close:

Screen Shot 2023-07-31 at 1.07.07 PM.png (436×1 px, 37 KB)

Re-checked the cases reported in T335922 on wikifunctions.org(just in case) - the issues are still present.

Hello! Is this still an issue? Also, what do we mean by 'ULS'?

Hello! Is this still an issue? Also, what do we mean by 'ULS'?

we're treating this task as a parent task for all tasks related to the language selector. i'd suggest to keep it open as long as there are unresolved subtasks.

Also, what do we mean by 'ULS'?

ULS is the Universal Language Selector developed and maintained by the language team. for wikifunctions, we could not use the ULS because this component displays languages coming from mediawiki, while in our case we had to display and retrieve languages coming from wikifunctions objects, aka Z60. we refer to our component as GLS, Global Language Selector.