Entity translation support for Drupal 7

Created on 15 March 2015, over 9 years ago
Updated 11 April 2024, 3 months ago

I'd really love if this module supported entity translation. I know there's 2 scenarios this would be required under:

  • A - paragraph field on the host entity is marked to be translated, but the individual fields on the paragraph entity are not
  • B - the paragraph field on the host entity is not to be translated, but the fields on the paragraph entity are

I decided to start investigating scenario A. I made some progress but it's by no means complete.

The patch attached creates a clone (using replicate module) of the paragraph module when the 'add translation' form is loaded and on save this is associated with the translated version of the host entity. However, there's a couple of big issues with it.

  1. The paragraph entity is created on the 'add translation' form load, rather than when the translation is saved.
  2. If the values in the paragraph form fields are modified on the 'add translation' form, then the changes aren't saved to the database. However, if you re-edit it later, it works fine

I think the second issue is because the paragraph field on the host entity isn't attached to the form correctly or something. I think if we managed to solve that, we could also come up with a different solution to avoid the first issue too.

✨ Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

🇮🇪Ireland stella

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