The language settings field widget behaves confusing depending on if the language module and or an extra language is installed

Created on 26 February 2023, over 1 year ago
Updated 2 March 2024, 9 months ago

Problem/Motivation

The behavior of the language settings field widget on /admin/config/people/accounts/form-display is pretty confusing and took me a while to figure out. If you install a fresh copy of 10.1.x-dev and take a look at the aforementioned link you will notice that a corresponding component for the language settings field widget is not in place on a user edit page. other fields widgets also without any formatters like for example contact settings have their dedicated field set on the user edit page.

If you install now the language module you will notice a select element with the site language label (for the display of that select element it has no effect if the newly added language code field widget gets enabled or is left disabled).

if i install now a second language aside english (german in my case) the visual representation on the user edit page changes again, the select element gets wrapped in a field set with a label of language settings.

Steps to reproduce

  1. Install Drupal 10.1.x
  2. Compare /admin/config/people/accounts/form-display and /user/1/edit
  3. Install the language module
  4. Compare /admin/config/people/accounts/form-display and /user/1/edit again
  5. Add a second language
  6. Compare /admin/config/people/accounts/form-display and /user/1/edit a last time

Proposed resolution

  • One step I would suggest in any way is to hide the language settings field widget as long as the language module is not installed yet. being unable to find a corresponding form element to the language settings field widget on the user pages is confusing.
  • that the field set for the language settings field widget is missing as long as no second language was added is highly unlikely that anyone would notice but still would it make sense to display the language settings field set as soon as the language module is installed no matter if there is only the single language the site is installed with is in place?
  • i am unaware about the technical constraints but would it be possible to combine the language settings and the language code field widget into a single one? cuz the language code settings are actual language settings?

Remaining tasks

Address points 2 +3
Test coverage for all

User interface changes

API changes

Data model changes

Release notes snippet

Feature request
Status

Needs work

Version

11.0 🔥

Component
User system 

Last updated 2 days ago

Created by

🇩🇪Germany rkoller Nürnberg, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024