Respect the translation_sync (column_groups) property of some fields

Created on 5 February 2018, over 7 years ago
Updated 16 February 2023, over 2 years ago

Some fields like the image field, for example, have sub-properties that can be set as translatable or not( title, file, alt tags)

They do this by adding "column_groups" to the field definition. Attached is a patch that respects this for the Default Field Processor

In my use case, it wasn't the image field I wanted this for but for link fields so I could disable automatic translation of the urls but leave the titles translatable. Core doesn't provide this, but I did this just by altering the link field definition to have appropriate "column_groups" properties. Then I can disable the URI for translation and TMGMT will only translate the title. This patch alone doesn't fix my issue completely as the link field still need to be altered but without this, internal link uri values like "entity:node:1" get translated to "Entitรคt: Knoten: 1" and this instantly breaks that node. I am not sure how others are getting around this. I understand some people may want to translate the uri but the automatic translation should not do that.

๐Ÿ› Bug report
Status

Needs review

Version

1.0

Component

Source: Entity

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom paulmartin84

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.

  • hey there,

    Any movement on this for a review perhaps?

  • First commit to issue fork.
  • Merge request !117Check translatability of column_groups โ†’ (Open) created by owenbush
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States owenbush Denver, CO

    I have updated the patch a little to actually check for column_groups on the field definition and provide defaults, similar to how content_translation.admin.inc does it. That way if the translation form has not been submitted this should still obey the underlying field type definition configuration.

    I also converted the patch into a merge request so it is easier to update and maintain.

  • Pipeline finished with Failed
    about 1 month ago
    Total: 424s
    #519168
Production build 0.71.5 2024