diff --git a/field_collection.module b/field_collection.module index 0bff7d0..d59cdde 100644 --- a/field_collection.module +++ b/field_collection.module @@ -1098,7 +1098,14 @@ function field_collection_field_widget_form(&$form, &$form_state, $field, $insta // Add the subform field_form_set_state($field_parents, $field_name, $language, $form_state, $field_state); - field_attach_form('field_collection_item', $field_collection_item, $element, $form_state, $language); + // Set the language to to parent entity language, because + // field_content_languages() will always set $language to LANGUAGE_NONE. + if (field_collection_item_is_translatable()) { + field_attach_form('field_collection_item', $field_collection_item, $element, $form_state, entity_language($element['#host_entity_type'], $element['#host_entity'])); + } + else { + field_attach_form('field_collection_item', $field_collection_item, $element, $form_state, $language); + } // Make sure subfields get translatable clues (like 'all languages') if (field_collection_item_is_translatable() && variable_get('entity_translation_shared_labels', TRUE)) {