Closed (duplicate)
Project:
Title
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 May 2012 at 11:34 UTC
Updated:
15 Mar 2013 at 18:51 UTC
When a list of terms is loaded for a taxonomy term reference field they are loaded by taxonomy_options_list which calls taxonomy_get_tree(). The title module doesn't seem to alter the output of this function which means the terms are always listed in the default language.
I'm not sure what the best way to fix this would be. The i18n module sets its own list function i18n_taxonomy_allowed_values so we might add support for the title module there? Or the title module could add its own allowed_values callback but that will give conflicts if you also have i18n_taxonomy active.
Any thoughts?
Comments
Comment #1
Volx commentedI think it is a good idea to use either the title module or i18n_taxonomy for translation of taxonomy, since they already conflict as far as I can see, e.g. they both set the label callback for the taxonomy_term entity type.
The best way to solve this issue would probably be to change the core taxonomy module to use entity_label instead of $term->name in taxonomy_allowed_values. That will fix this issue, at the same time i18n_taxonomy can get rid of its i18n_taxonomy_allowed_values voodoo, because it registers a custom label callback which will be called by entity_label.
I am marking this issue as a duplicate, since I proposed a patch for the core Taxonomy module here: #1944246: taxonomy_allowed_values should use entity_label.