I have translated my taxonomies but the widget does not show the translated term labels.

I can have a look to create a patch but would need to know where to start looking...

Thank you,

- Etienne

Comments

sepgil’s picture

Category: bug » feature

We would need i18n integration, so you could start by looking at the code of the module look how it alters the taxonomy query...

gabidrg’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new7.27 KB

The attached patch implements translation support via Entity Translation. The query has been rewritten to use EntityFieldQuery (for flexibility) and conditional joins have been added as query tags. It also implements an "autocomplete_deluxe" query tag for additional query alters.

Note: this patch also addresses the issue described in https://drupal.org/node/2048563

zarudnyi’s picture

Status: Needs review » Reviewed & tested by the community

I confirm that the patch solves the problem.
Thank you gabidrg!

wroxbox’s picture

Re-rolling patch to work with drush.make builds

Toche’s picture

#4 works for me.
Tested on Recruiter Distro.
Thank you

7thkey’s picture

It doesn't work at all. When introducing new terms with the widget, there's a mismatch on the 'language' column when looking on the 'taxonomy_term_data' and 'field_data_name_field'. I've changed the slightly the #4 patch to match the language value in both columns.

7thkey’s picture

Status: Reviewed & tested by the community » Needs review
nicola85’s picture

neeraj.knit06@gmail.com’s picture

I created a field with widget Autocomplete delux module and this was set with translated taxonomy but it was not seeing translated. So I created a patch for this using I18N module. Now it is getting translated but it is little bit slow.

Thanks,
Neeraj

neeraj.knit06@gmail.com’s picture

StatusFileSize
new494 bytes
interdruper’s picture

Neeraj, this issue is related to vocabularies with 'Entity translation' translation mode.. Your patch #10 is related to 'Localize' translation mode. Please open a new issue related to this last one.

deepak goyal’s picture

I am facing same issue as well.

RAFA3L’s picture

Hello, the patch #8 only work if the vocabulary is translatable and damage any other vocabulary if is not translatable. If you apply the patch and you have vocabularies not translatable this will duplicate any term every time you add it to a node.

RAFA3L’s picture

This patch fix the problem with vocabularies without translation and have some cleanups

mandras87’s picture

StatusFileSize
new890 bytes

If somebody is having this problem on 2.0.2, here is a patch

rajab natshah’s picture

Status: Needs review » Closed (outdated)