Closed (fixed)
Project:
Internationalization
Version:
7.x-1.x-dev
Component:
Taxonomy
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 May 2012 at 16:21 UTC
Updated:
7 Jun 2012 at 08:41 UTC
How to print localized taxonomy term in node template?
['taxonomy_term']->name; is printing term name, but not localized.
Comments
Comment #1
webflo commentedUse i18n_taxonomy_term_name() or entity_label().
Comment #2
ali_b commentedthank you.
if someone is looking for solution to print localized taxonomy terms, this is the code:
terms are printed as strings, not links, sepatared by commas.
(replace $node->field_yourfieldname with your name)