I use the Languafe field module. It provides a select list with all the languages Drupal knows of.
When I disable field translation, the language names are in English on all translations.
When I enable field translation, the language names are translated, but I'd have to select the desired languages for each translation by hand.
At first I thought this could/should be fixed at languagefield (#1761212: Display of language names is not translated ), but after re-thinking it, the behavior seems to be correct, because it's actually field content, no matter whether the content is provided by Drupal or the user.
So what I'd need is a synchronizing functionality.
I know there is the i18n sub-module "Synchronize translations", but this seems to only work for Content Translation (Core).
What could I do? Is there any way to synchronize the selected values among all translations?
(if Drupal would use a translated taxonomy for languages (each language would be a term), there would be no problem, but I guess this won't happen)
Comments
Comment #0.0
no2e CreditAttribution: no2e commentedtaxonomy would be perfect, ofc
Comment #1
plachNo time to dive deeply into this right now but you could start having a look to entity_translation_field_info_alter, entity_translation_sync and entity_translation_form_field_ui_field_edit_form_alter.
Comment #2
plachIs this still an issue?
Comment #3
no2e CreditAttribution: no2e commentedWell, I couldn't make this happen.
If you consider this functionality useful, I'd say this should be a feature request.
Comment #4
plachDid you look into the field synchronization API provided by ET? At the moment it is implemented only by image fields.
Comment #5
no2e CreditAttribution: no2e commentedI fear I don't have the necessary knowledge for that, as I'm no programmer.
Comment #6
plachOk, looks like this is a feature request :)
Comment #7
mstiHow is this supposed to work?
I have set the $instance['settings']['entity_translation_sync'] = true , but the translations are not synchronized.
Setting the same value for an image field seems to do the work. Is there someting else that I need to change?
I am using the 7.x-1.0-beta3
Comment #8
plachYou also need to provide the list of columns to be shared accross translations in
$field['settings']
, seeentity_translation_field_info_alter()
.Comment #8.0
placherr