Problem/Motivation
When reusing an existing paragraphs field on a non translatable content type the the "Users may translate this field" checkbox is disabled and checked by default. This results in having translatable ERR fields.
Proposed resolution
Set default to unchecked when the field is disabled.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | translatable-disabled-default-3110954-1.patch | 5.28 KB | primsi |
Comments
Comment #2
primsi commentedComment #4
miro_dietikerAt least major... maybe critical.
Comment #5
berdirSlightly confused right now.
First I thought this might be something weird/inconsistent in core when you add new/existing fields.
Then I thought, no it's just because we don't go below the service check, but then I saw that there we just display the message and never change the value at the moment.
Also, I think this is now doing it for _all_ fields, not just our own, so we need to split up the existing check below and check for the field type/target first.
But, lets go one step back and check what the behavior in core is exactly, without paragraphs enabled at all, on a single text field. 4 cases: adding a new text field vs. existing one, having content_translation enabled & active vs not. What is the default value/status/visibility of this checkbox in each case?
Comment #6
primsi commentedFresh install, enabled locale and language, no paragraphs.
No content translation:
checkbox doesn't appear
Content translation enabled:
Seems like this logic was added here #1831608: Show or hide the "Make field translatable" checkbox on the add field form depending on translatability
Comment #7
berdirCreated #3111550: Test that new fields are translatable when re-using existing storage but not translatable when added from the UI