3

Is there a way to display taxonomy terms in a language given by a Views argument, i.e. to override the user's language preference? The field formatter "Plain text (localized)" doesn't do the trick.

Example:

Tab one: English

  • Africa
    • Story 1
    • Story 2
  • Middle East
  • Europe

Tab two: Français

  • Afrique
    • Histoire 1
  • Moyen-Orient
    • Histoire 2
  • Europe

The stories are a single content type, but completely different pieces of content (not translations). I'm using quicktabs to render this.

Edit: the taxonomy terms are already translated via the i18n module, the question is about getting Views to display the translation I want.

  • Did you find a solution to this? I am in the exact same situation. My terms are translated but can't display them in the users' current language in Views – znat Mar 12 '13 at 18:07
3

By default views doesn't allow to filter the taxonomy terms by the language, only with nodes.

But, you can use the Internationalization Views:

http://drupal.org/project/i18nviews

After you enable the module go to relationships and add "Content: Taxonomy terms on node" Then you can find " Taxonomy term: Language " under filters. This should do the trick.

Good luck.

  • Thanks! The module is a dev version, so I'll need some time to test this before accepting your answer. – vjik-- Sep 28 '12 at 16:10
  • Regardless being in dev, the alternative is to write a module and implement a call to _views_query_alter – Matteo Jan 16 '13 at 11:43
0

You can translate taxonomy terms with the Internationalization module.

  • I have already done that. Editing the question to clarify. – vjik-- Sep 28 '12 at 16:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.