I found a need to be able to base the entity translation field on the user's context language as well as use the entity_translation table as the base table rather than the node table. This allows the autocomplete feature to look up nodes based on entity translation language rather than the base node language.

Comments

jwhitney64’s picture

netsensei’s picture

Status: Active » Needs work

Yes. Assuming you have the Entity Translation module enabled. The current version of the module does not support Entity Translation. Your patch directly queries the ET table. I think we need a bit more validation of the context (field translation v. entity translation, etc.) based on the entity/bundle settings here.

rcodina’s picture

Is 2220563 a duplicate of this one?

rcodina’s picture

Priority: Normal » Major

I think support for Entity Translation is a priority. Patch on #1 doens't work for me: my parent entity is in english but only spanish taxonomies are listed.

rcodina’s picture

What worked for me was taking original code and then remove this so "Select only nodes matching the parent\'s language" option takes effect.

&& $entity_info['translation']['locale'] == TRUE