Force site builders to make only valid choices when configuring entity default language with translation enabled

Created on 7 November 2012, over 12 years ago
Updated 2 June 2025, 4 days ago

Follow up for #1831636: "Translation is not supported if language is always one of: Not specified, Not applicable, Multiple" reword to: "...." β†’

Problem/Motivation

While trying to word the error message that is the result of incompatible configuration, @webchick said making the error message better is A Good Thing. But, that really it would be better to have the interface not allow picking wrong choices.

Steps to reproduce

  1. Install drupal (8.x head)
  2. Under Extend, install/enable module: Content Translation
  3. (optional, but makes sense to) Add another language, Under configuration, regional and languages, languages, add language, at admin/config/regional/language
  4. Edit the content type Article, at admin/structure/types/manage/article
  5. select the Language settings to see the dropdown and checkboxes

Beta phase evaluation

<!--Uncomment the relevant rows for the issue. -->

Allowed in the drupal 8 beta because it is a prioritized change where the usability improvement has an impact greater than the disruption.

Proposed resolution

This needs discussion, but a start suggestion is to not allow choosing the system languages (only showing specific ones?) when translation is already enabled and the lang select is hidden.

Remaining tasks

  • explicitly write down the combinations of flows that goes through when to hide what and what to allow to be selected
  • maybe mark up an example of one of the flows
  • get screenshots
  • get ui review
  • revisit proposed solution
  • implement
  • manually test
  • write tests
  • review code
  • etc

User interface changes

This is a ui issue. See above.

API changes

No api changes anticipated.

πŸ“Œ Task
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

content_translation.module

Created by

πŸ‡ΊπŸ‡ΈUnited States yesct

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • Needs manual testing

    The change/bugfix cannot be fully demonstrated by automated testing, and thus requires manual testing in a variety of environments.

  • D8MI

    (Drupal 8 Multilingual Initiative) is the tag used by the multilingual initiative to mark core issues (and some contributed module issues). For versions other than Drupal 8, use the i18n (Internationalization) tag on issues which involve or affect multilingual / multinational support. That is preferred over Translation.

  • stale-issue-cleanup

    To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues

Sign in to follow issues

Comments & Activities

Not all content is available!

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

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thank you for creating this issue to improve Drupal.

    We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.

    Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

Production build 0.71.5 2024