Views exposed filters for taxonomy hit the database directly to load taxonomy terms, or else use taxonomy_get_tree() which also hits the database directly. Either way, the entity system gets bypassed.

This is no good for translation, particularly if using the Title module, as it means the translation system has no ability to get in and do its thing. The only fix, unfortunately, is to do actual entity loads. That does, however, allow the Title module and similar modules to futz with the term name before it gets displayed, doing things like translating it for the user's language.

Patch coming as soon as I have a nid.

#1 1857608-taxonomy-titles.patch2.38 KBCrell
PASSED: [[SimpleTest]]: [MySQL] 1,603 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


Crell’s picture

Status: Active » Needs review
2.38 KB
PASSED: [[SimpleTest]]: [MySQL] 1,603 pass(es). View

And patch.

plach’s picture

dawehner’s picture

Isn't the actualy problem that taxonomy_get_tree does not load the entities by default?

As this exposed filter could have a lot of potential entries, couldn't a entity_load cause some problems?
IN general we could just use $load_entities = TRUE.

TuWebO’s picture

Status: Needs review » Closed (duplicate)