Page MenuHomePhabricator

Function editor: Set language field to inactive only after entering content
Closed, ResolvedPublic

Description

During a research study on generic types in the function editor we observed how multi-lingual participants wanted/tried to change the default language selected in the function editor.

The language defaults to the UI language but it's not possible to change it because the field is inactive by default.

CleanShot 2023-11-07 at 12.58.03@2x.png (968×2 px, 149 KB)

What we could alternatively do is opt for a similar pattern as the about widget dialog where we set the language field to inactive only after function creators start entering some content.

  • On launch the language filed is editable
    CleanShot 2023-11-07 at 13.02.46@2x.png (996×2 px, 151 KB)
  • Function creators can pick another "default" language
    CleanShot 2023-11-07 at 13.06.39@2x.png (968×2 px, 145 KB)
  • As soon as they start entering content the language field becomes inactive
    CleanShot 2023-11-07 at 13.04.20@2x.png (956×2 px, 149 KB)

Event Timeline

one scenario to consider is what happens if you want to change the language when there's any content set. we could allow changing the language only when there's no content.

Un-assigning, as it has been a few months without updates.

Change #1190512 had a related patch set uploaded (by Divyaratann Srivastava; author: Divyaratann Srivastava):

[mediawiki/extensions/WikiLambda@master] function editor: Make language field editable until content is entered

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

DSmit-WMF changed the task status from Open to In Progress.Nov 26 2025, 11:20 AM
DSmit-WMF updated Other Assignee, added: DSmit-WMF.

Change #1190512 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] function editor: Make language field editable until content is entered

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