Hi,

I have several translations (Japan, French, English) for one node using translatable fields. Source language is Japan. When clicking the edition link (node/XX/edit), the English translatable fields appear.
If I only have French and Japan translations, the French translatable fields appear.

It doesn't seem very logical. By default, it should be the translatable fields from source language (Japan).

Currently, if no language code is found in node edition URL, entity_translation_form_language() function is called and apply these rules:

  1. Get $GLOBALS['language_content']->language translation (English in my case)
  2. Otherwise, get the first existing translation found for this content
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

make77’s picture

Status: Active » Needs review
FileSize
604 bytes
make77’s picture

Version: 7.x-1.0-beta3 » 7.x-1.0-beta4
FileSize
900 bytes

I updated patch for latest version of entity_translation.
I also moved this correction directly into entity_translation_get_existing_language function.