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.

CommentFileSizeAuthor
#1 1857608-taxonomy-titles.patch2.38 KBCrell
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Crell’s picture

Status: Active » Needs review
FileSize
2.38 KB

And patch.

plach’s picture

dawehner’s picture

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

http://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/fu...

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)