diff --git translation.admin.inc translation.admin.inc index c8390f8..4b6ed48 100644 --- translation.admin.inc +++ translation.admin.inc @@ -247,7 +247,7 @@ function translation_edit_form($form, $form_state, $entity_type, $entity, $langc // If we are creating a new translation we need to retrieve form elements // populated with the source language values. - $view_mode = 'full'; + $view_mode = 'default'; list($id, , $bundle) = entity_extract_ids($entity_type, $entity); field_attach_prepare_view($entity_type, array($id => $entity), $view_mode); $field_view = field_attach_view($entity_type, $entity, $view_mode, $langcode); @@ -268,7 +268,7 @@ function translation_edit_form($form, $form_state, $entity_type, $entity, $langc $form[$field_name] = array( '#markup' => drupal_render($field_view[$field_name]), // Place the element where it would appear if displayed. - '#weight' => $instance['display']['full']['weight'], + '#weight' => $instance['display'][$view_mode]['weight'], ); } // If we are creating a new translation we have to change the form item