Hello,
I'm using last modules version : file_entity-7.x-2.0-beta1 + media-7.x-2.0-alpha4
To activate translation of Alt+Title I do :
* /admin/config/regional/entity_translation
--> Translatable entity types : File : On
* /admin/config/regional/entity_translation
--> File : Image : Hide language selector : Off (as I prefer)
* /admin/structure/file-types/manage/image/fields/field_file_image_alt_text
--> Field translation : On
* /admin/structure/file-types/manage/image/fields/field_file_image_title_text
--> Field translation : On
* /admin/structure/types/manage/memo/fields/field_vignette (the image field in my content type)
==> Enable Translation : On
==> Field synchronization : On
Then I take an image in Thumbnails library and edit it.
I write Alt+Title in english language.
I create a translation to French, and I change Alt + Title into Franch language.
If I see the image itself (url /file/xxx) into English or French all is good, Alt+Title appear in the right language depending on choosen language.
If I see a node containing this image (url /node/yyy), the node itself is translated depending on choosen language, BUT the Alt+Title is always in English. It should appear in same language as the node.
Do you know what I missed ?
Comments
Comment #1
srobert72 CreditAttribution: srobert72 commentedJust to precise, while editing this node in each language, Title text appears in the right language when the mouse is over the image.
But in view mode, only one language appears for the both language url.
Comment #2
srobert72 CreditAttribution: srobert72 commentedMe again.
The situation I described before is in the case that image's Alt+Title have been set and translate directly in Media using /admin/content/file/thumbnails and /file/xxx/edit.
I tried another procedure. If Alt+Title have never been set in Media, and I set them while including image in node edit page, the result is OK, it works has expecded.
Comment #3
steinmb CreditAttribution: steinmb commentedIs this related to translated (entity translation), or is it also broken when you have non translation enabled on the site?
Comment #4
srobert72 CreditAttribution: srobert72 commentedContent nodes were already there when I upgraded to Media 2.x.
I must save again translated version of a node to generate records in table : field_data_field_vignette
And then I must force some manual SQL queries to update Alt+Tilte in English and French :
Because what I want is to set Alt+Title in English and French only in media.
And reuse those text for Alt+Tile every where images are used in every nodes.
I update 1 time Alt+Title for an image, and reuse it in every nodes without the need to update each nodes.
Comment #5
srobert72 CreditAttribution: srobert72 commentedWould it be possible to take default Alt+Title values in File instead of in Field if it doesn't exist ?
If Alt or Title is NULL in field_data_field_image
Then take it in field_data_field_file_image_alt_text and field_data_field_file_image_title_text
So of we don't set specific values for Alt+Title in a node, then take default values in Image directly.
Comment #6
mgiffordComment #7
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedClosing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team