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

no2e’s picture

Issue summary: View changes

taxonomy would be perfect, ofc

plach’s picture

No 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.

plach’s picture

Version: 7.x-1.0-alpha2 » 7.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

Is this still an issue?

no2e’s picture

Well, I couldn't make this happen.

If you consider this functionality useful, I'd say this should be a feature request.

plach’s picture

Did you look into the field synchronization API provided by ET? At the moment it is implemented only by image fields.

no2e’s picture

I fear I don't have the necessary knowledge for that, as I'm no programmer.

plach’s picture

Category: support » feature
Status: Postponed (maintainer needs more info) » Active

Ok, looks like this is a feature request :)

msti’s picture

How 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

plach’s picture

You also need to provide the list of columns to be shared accross translations in $field['settings'], see entity_translation_field_info_alter().

plach’s picture

Issue summary: View changes

err