Page MenuHomePhabricator

Allow multiple select in the Language select widget
Closed, ResolvedPublic4 Estimated Story Points

Description

Continue the languageselectwidget ticket T415013: Create Language Select Widget

Event Timeline

abi_ triaged this task as High priority.
abi_ set the point value for this task to 4.
abi_ renamed this task from Allow multi in the language selector widget to Allow multiple select in the Language select widget.Jan 20 2026, 11:32 AM
abi_ updated the task description. (Show Details)

Change #1233121 had a related patch set uploaded (by Huei Tan; author: Huei Tan):

[mediawiki/core@master] LanguageSelectWidget: Add multiple selection support

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

hueitan changed the task status from Open to In Progress.Jan 26 2026, 3:42 PM
hueitan updated the task description. (Show Details)

See also T415679: MultiselectLookup hijacks Enter presses inside forms, which might be considered a blocker for implementing MultiselectLookupLanguageSelector adaptation.

Change #1237379 had a related patch set uploaded (by Huei Tan; author: Huei Tan):

[mediawiki/core@master] LanguageSelectWidget: Add multiple selection support

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

Change #1233121 abandoned by Huei Tan:

[mediawiki/core@master] LanguageSelectWidget: Add multiple selection support

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

Change #1233121 restored by Huei Tan:

[mediawiki/core@master] LanguageSelectWidget: Add multiple selection support

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

Change #1237379 abandoned by Huei Tan:

[mediawiki/core@master] LanguageSelectWidget: Add multiple selection support

Reason:

back to the solution (3) with <select multiple>

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

Change #1233122 had a related patch set uploaded (by Huei Tan; author: Huei Tan):

[mediawiki/extensions/Translate@master] SpecialPageTranslation: Use Language Select Widget

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

Change #1242622 had a related patch set uploaded (by Huei Tan; author: Huei Tan):

[mediawiki/extensions/Translate@master] Remove unused utilities LanguagesMultiselectWidget

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

Change #1242622 abandoned by Huei Tan:

[mediawiki/extensions/Translate@master] Remove unused utilities LanguagesMultiselectWidget

Reason:

wrong patch

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

Change #1233121 merged by jenkins-bot:

[mediawiki/core@master] LanguageSelectWidget: Add multiple selection support

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

Change #1233122 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] SpecialPageTranslation: Use Language Select Widget

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

Nikerabbit updated the task description. (Show Details)
Nikerabbit updated the task description. (Show Details)
Nikerabbit subscribed.

I tested this on my dev wiki:

  1. There is a FOUC when I load Special:PageTranslation with JS enabled. The non-JS fallback is briefly visible. This is not a blocker but it is bad user experience.
  1. The language codes are duplicated on both JS and non-JS input:

image.png (335×621 px, 64 KB)

  1. The no-JS additional description below the selector is now wrong. It can probably be removed now.
  1. The non-JS version has a weird non-functional down-arrow.

Change #1245089 had a related patch set uploaded (by Huei Tan; author: Huei Tan):

[mediawiki/core@master] LanguageSelectWidget: Fix error when no default value found

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

Change #1245089 merged by jenkins-bot:

[mediawiki/core@master] LanguageSelectWidget: Fix error when no default value found

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

Change #1249233 had a related patch set uploaded (by Huei Tan; author: Wangombe):

[mediawiki/extensions/Translate@master] PageTranslation: Standardize language labels in language selector

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

I tested this on my dev wiki:

  1. There is a FOUC when I load Special:PageTranslation with JS enabled. The non-JS fallback is briefly visible. This is not a blocker but it is bad user experience.

Unfortunately, this is due to the js enabled "codex replacement" solution and the multiple select usage for non-js, we will need to find the different approach.

  1. The language codes are duplicated on both JS and non-JS input:
  2. The no-JS additional description below the selector is now wrong. It can probably be removed now.
  3. The non-JS version has a weird non-functional down-arrow.

These are fixed in the https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Translate/+/1249233

Change #1249233 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] PageTranslation: Minor fix to the language selector

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

The non-JS version has a weird non-functional down-arrow.

This is not fixed. Does anyone know where it is coming from and why? Not gonna treat it as a blocker though.