Paragraph can't be added, deleted or moved in a translated node

Created on 19 July 2023, over 1 year ago
Updated 25 June 2024, 5 months ago

Problem/Motivation

--- !!! I am not talking about asynchronus translation !!!---

If the paragraph field is set as not translatable and Hide non translatable fields on translation forms is not checked then we could expect to edit the paragraph in any language:
-deleting an item in french will lead to a deleted item in all languages
-moving an item in dutch will lead to a moved item in all languages
-idem for adding an item
-Editing is already working in all languages

This is the way the other fields are working, this is why I tag this issue as a bug

Steps to reproduce

1-Create a paragraph field
2-Set it as non translatable
3-Uncheck Hide non translatable fields on translation forms for the content type of the field
4-Create a node and translate it
5-Go to the translated node, you will not be able to add, delete or move a paragraph item

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium DuneBL

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @DuneBL
  • Assigned to jjose.quevedo
  • Status changed to Closed: cannot reproduce over 1 year ago
  • πŸ‡ΊπŸ‡ΎUruguay jjose.quevedo

    Hi, I was trying to reproduce this issue, but I couldn't. It seems everything is working properly using vanilla Drupal. Here are some screenshots:

    • One field was hidden in the translation configuration
    • The field don't appear in the translation of node
  • Status changed to Active over 1 year ago
  • πŸ‡§πŸ‡ͺBelgium DuneBL

    Sorry, I think I was not clear enough because it is not the case I was talking about. Here are the steps with more explainations:
    1-Create a paragraph field inside a content type (ex: inside my_node_type) using only my_parag_type as paragraph type
    2-Set my_parag_type as non translatable in admin/config/regional/content-language
    3-Uncheck Hide non translatable fields on translation forms for my_node_type in admin/config/regional/content-language
    4-Create a node and translate it
    5-Go to the translated node, you will not be able to add, delete or move a paragraph item of type my_parag_type

  • Status changed to Needs review over 1 year ago
  • πŸ‡ΊπŸ‡ΎUruguay jjose.quevedo

    Thank you for providing the clarification. I attempted to reproduce the issue again, but I couldn't observe any problems using vanilla Drupal. I followed the steps you outlined, and I'm sharing the screenshots for your reference:

    • This is the configuration
    • This is the original node
    • This is the translation form of the previous node

    As you can see, the paragraph can't be added, deleted, or moved in the translated node. So, if there is anything specific you would like me to try or if you have any additional information, please let me know.

  • πŸ‡§πŸ‡ͺBelgium DuneBL

    As you can see, the paragraph can't be added, deleted, or moved in the translated node.

    This is specifically the object of this bug: there is no reason to avoid the addition/deletion or move of the paragraph items.

    Let explain this with another field type:
    For exemple, if you have a multivalue field which is not a paragraph and if this field have the same settings:

    • not translatable
    • and the parent node have Hide non translatable fields on translation forms unchecked.

    Then, in the translated node form, you can add/delete/move the items of this field... If this is a paragraph field you can't.
    This is what a user is expecting: being able to manipulate non translatable fields in all languages if Hide non translatable fields on translation forms is unchecked

  • Status changed to Closed: won't fix about 1 year ago
  • πŸ‡¨πŸ‡­Switzerland berdir Switzerland

    > This is specifically the object of this bug: there is no reason to avoid the addition/deletion or move of the paragraph items.

    Drupal does not allow to change multiple translations at once and that's exactly what would happen. This is not a bug, this is by design and will and can not be changed.

  • Status changed to Active about 1 year ago
  • πŸ‡§πŸ‡ͺBelgium DuneBL

    >Drupal does not allow to change multiple translations at once and that's exactly what would happen. This is not a bug, this is by design and will and can not be changed.

    I don't follow you because:

    • The field is not translatable
    • This can be done with another field type: like a (not translatable) multivalue text field

    I changed the category into feature request

  • πŸ‡©πŸ‡ͺGermany thomaswalther Rhein-Main Area

    A translated node with paragraphs only should be able to edit/translate like a translator would do.
    Changing the order or delete/add one item should ONLY be done from/with the original node (Original language)

    After adding/deleting/moving a paragraph from the original language node, then the translator must visit the other translation (with the not yet setted translated values) and should have the fallback field and could now update this field for this language.

    Otherwise, a translator would be able to delete/update/move the paragraphs, that's not the work of a translator.

  • πŸ‡§πŸ‡ͺBelgium DuneBL

    @thomaswalther I am talking about not translatable paragraphs. Which should not be edited by translators.

    We can compare this paragraph field with any other not translatable multi-value fields. A not translatable multi value field can be re-ordered in the translated node, we can also add/delete a value. This is the regular Drupal's behavior.

    Why the not translatable paragraph fields does not follow the same rules?

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

    @DuneBL wondering the same, reluctant to add a contrib module to enable this functionality on translated paragraphs.

Production build 0.71.5 2024