If I am using a entity reference for a taxonomy, and the taxonomy term has been translated, the options won't been translated.

While looking into the code, I think there is a missing t() for the $term->name.

Here is the patch, and it works fine in one our project. Hope it helps.

Here is the steps to reproduce this issue:
1: enable i18n_taxonomy module
2: create a taxonomy vocabulary, in the "MULTILINGUAL OPTIONS", select below option:
Localize. Terms are common for all languages, but their name and description may be localized.
3: create a entity reference field to the taxonomy created in step 2 for a content type.
4: create a term in step 2 and goto translated interface to translate it.
5: create a node in step 3, you will see the translated not word even you have already translated it.

After apply the patch, step 5 will show translated term name.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rogical’s picture

nice!

zterry95’s picture

This is the correct patch.

zterry95’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Status: Active » Needs review

The last submitted patch, taxonomy_term_ref_label_translation_not_word.patch, failed testing.

letrotteur’s picture

Don't think using t() is the right way to do it. Should be using some of the i18n function.

letrotteur’s picture

Seems to be a duplicate issue of https://drupal.org/node/2013849

bradjones1’s picture

Status: Needs review » Closed (duplicate)