If you have a node with a image field, leave the image empty, then create a translated version and add an image to that, you'd expect the image field to stay empty in the original one. But it doesn't. The image you add to the translated version will be added to the original too.

If you add the image to the translated node and then go back to the original and delete the image, the original is without and image and the translated has the image. But if you edit the translated, the image gets added back to the original.

Steps to reproduce - did this in simplytest.me with RC4

  1. Enable Language and Content translation
  2. Add language (I added Finnish)
  3. Add translation support for Article (which already has field_image per default installation). Make sure the "File" under "Image" is also checked.
  4. Add article, keep it in English (default). Add a file for the image field or leave it empty.
  5. Add a translation for the node, put a different image to the field_image
  6. Go back to the original - it has the file you added to the translated one

Vanilla RC4 seems to be having problems with even the alt text - the same text goes for the both translations.

Comments

tormu created an issue. See original summary.

holist’s picture

I can confirm this issue is still present in 8.0.0.

toniteof’s picture

Assigned: Unassigned » toniteof
toniteof’s picture

Status: Active » Fixed

Working fine. Just add one more step.

  1. Enable Language and Content translation
  2. Add language.
  3. Add translation support for Article (which already has field_image per default installation). Make sure the "File" under "Image" is also checked.
  4. Edit image field (Home > Administration > Structure > Content types > Article) and make sure that all "Translatable elements" are checked. ("File", "Alt", "Title")
  5. Add article.
  6. Add a translation
  7. ...
tormu’s picture

Version: 8.0.0-rc4 » 8.0.0
Status: Fixed » Active

at admin/structure/types/manage/page/fields/node.page.field_image I have checked following form items:

x Users may translate this field
x "File" under Translatable elements

This makes it possible to have different image on different translated versions of the node, but the original problem still exists. If you set the image field empty for language X and then add an image to the language Y version, the image gets added to the language X version too.
X doesn't remain empty.

toniteof’s picture

Assigned: toniteof » Unassigned

I confirm issue.
It work only if all three check boxes (File, Alt, Title) are checked on both pages (admin/config/regional/content-language and admin/structure/types/manage/article/fields/node.article.field_image).

swentel’s picture

Version: 8.0.0 » 8.0.x-dev

This is probably fixed by #2639352: File records, files themselves lost in translation, we should see if we can still reproduce this now.

swentel’s picture

Status: Active » Closed (duplicate)

Closing, re-open if it still occurs, but it should be fixed normally.

swentel’s picture