Changing original field option "Users may translate this field" should provide a content fallback

Created on 2 September 2018, over 6 years ago
Updated 22 April 2024, 8 months ago

In case of translatable content and translation module enabled, changing the field setting option "Users may translate this field" on a later state should provide a smart fallback or choice to keep the already added content, delete it or to place it in a preferred language. (Or it should be locked in case of content already added?)

In the moment, unchecking it makes the already added content unvisible (raising database issues?). So what happend with the already provided content? Is it orphaned in the database? Or does it get overridden next time when content will be added? In the moment, it occurs again when the last change of the setting gets reverted to the state of before.

Since this could corrupt the already stored content, I decided to set it to Major. If it has a smart hidden fallback I am not aware of and only a message to the user is missing here, feel free to de-escalate the priority, if you think it is too much for this.

🐛 Bug report
Status

Active

Version

11.0 🔥

Component
Language system 

Last updated about 1 hour ago

  • Maintained by
  • 🇩🇪Germany @sun
Created by

🇫🇷France dqd London | N.Y.C | Paris | Hamburg | Berlin

Live updates comments and jobs are added and updated live.
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.

  • 🇨🇿Czech Republic my-family

    We encountered the same problem. I think this is a serious issue. When a site administrator changes field to translatable, they don't expect losing half (or more) of the field's data because of missing fallback...

  • 🇨🇿Czech Republic honyik

    Also encountered the same issue, seems pretty critical to me, I just wanted to enable translations for image ALT on an older site and all the translations (apart from the original language of the node) no longer have the image linked.

  • 🇫🇷France dqd London | N.Y.C | Paris | Hamburg | Berlin

    @ last reporters, can you please provide the Drupal version you have experienced your described issue?

    I just wanted to enable translations for image ALT on an older site and all the translations (apart from the original language of the node) no longer have the image linked.

    @honyik: The report is somewhat confusing me. If you just enabled translation for your entity type how can you have an original language and something like "all other translations"? Can you please describe the issue in more detail? THere is possible chance that your report describes another issue.

  • 🇮🇹Italy nicoschi

    I will try to describe the real issue step by step:

    - given a Drupal site with two languages, ie. English and Italian
    - create a translatable content type
    - create a field (ie. a plain text one) and leave it not translatable
    - insert a content of the created one type in English language
    - translate the inserted content in Italian
    - make the privous created field translatable
    - now value of the field made translatable is gone in the Italian content

    Best would be a fallback in English

  • 🇮🇹Italy nicoschi

    Observing changes in database after the field is made translatable it seems that providing a fallback it's really hard but a warning message at least should be shown when trying to make translatable a field with data in database.

Production build 0.71.5 2024