Translating referenced entity seems to not work correctly as of 1.17

Created on 13 March 2025, 6 months ago

Problem/Motivation

Translating Site Studio layout canvas entity which is a referenced entity using entity reference revisions is no longer translating correctly after upgrading to version 1.17 of TMGMT.

Steps to reproduce

  1. Install Site Studio & TMGMT modules
  2. Setup translations so that the field is not translated but the underlying entity
  3. Create a node with a site studio field
  4. Add a text component & save page
  5. Translate page through TMGMT & updating values
  6. The result is that the underlying entity has not been translated and shows the source translation

I unfortunately have no other way to reproduce this. I believe that issue is around the change merged for this issue: https://www.drupal.org/project/tmgmt/issues/3478739 ๐Ÿ› Create revision before changing values, set revision author and time Active

๐Ÿ› Bug report
Status

Active

Version

1.17

Component

Core

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom thoward216

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

Merge Requests

Comments & Activities

  • Issue created by @thoward216
  • Merge request !95Resolving referenced entity issues โ†’ (Open) created by thoward216
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom thoward216

    Adding patch so we can kick of Site Studio tests with this patch.

  • Pipeline finished with Failed
    6 months ago
    Total: 392s
    #447385
  • ๐Ÿ‡จ๐Ÿ‡ฆCanada davidarbour

    #3 fixed the issue.

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom thoward216
  • ๐Ÿ‡จ๐Ÿ‡ญSwitzerland berdir Switzerland

    #3 is just a revert of the change done by the other issue, which IMHO implements the correct thing and is consistent with how translations through the UI also happen.

    Will need to be investigated why this happens with site studio, reverting this change is not an option at this point.

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom thoward216

    Understood, thanks for context here @berdir. It will likely need further investigation by the Site Studio team.

  • Status changed to Closed: works as designed 9 days ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia rckstr_rohan

    With the latest TMGMT Embedded References Configuration, there is no patch required to enable Site Studio (Layout Canvas) field translation in Drupal. TMGMT now offers native support for Site Studio fields through configuration. Follow these steps to achieve efficient, seamless translation.

    Step-by-Step Solution to Enable TMGMT Translation for Site Studio Fields

    1. Enable Translation for Your Content Type
    Navigate to the Content Types page:

    Go to Structure > Content types (/admin/structure/types).
    Edit Your Target Content Type:

    Click the Edit button next to the content type where a Site Studio field is used.
    Access Language Settings:

    Click the โ€œEditโ€ tab for your content type.
    Find the Language settings section.
    Enable Translation:

    Check the box for Enable translation.
    Click Save at the bottom.
    This makes the content type translatable, including Site Studio fields.

    2. Configure TMGMT to Support Site Studio Layout Canvas
    Navigate to TMGMT Settings:

    Go to Translation Management > Settings or directly via the URL /admin/tmgmt/settings.
    Enable Embedded References for Layout Canvas:

    In the Embedded references section, locate Layout canvas (Layout canvas).
    Check the box to enable it.
    Save Configuration.

  • Now that this issue is closed, please review the contribution record.

    As a contributor, attribute any organization helped you, or if you volunteered your own time.

    Maintainers, please credit people who helped resolve this issue.

Production build 0.71.5 2024