Respect the translation_sync (column_groups) property of some fields

Created on 5 February 2018, over 6 years ago
Updated 16 February 2023, over 1 year 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

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.69.0 2024