ryanka
ryanka

Reputation: 303

How To: Display taxonomy translations based on a user's view

I've been trying to figure out how exactly to display a set of taxonomy terms according the current user's language.

I have:

Unfortunately, it won't dump out the Spanish terms. The English ones are working fine.

Any links to articles on how to get this to work or assistance would be a great help.

THANKS IN ADVANCE!!

Upvotes: 0

Views: 1866

Answers (2)

ryanka
ryanka

Reputation: 303

This can actually be done with Internationalization Views (http://drupal.org/project/i18nviews)

I had just misconfigured my view. It was an easy oversight to fix.

I did the following:

  1. Created a taxonomy vocabulary and set the "Multilingual Options" to "Translate."
  2. Edited each of the terms and clicked the "Translate" tab at the top of the page. Must make sure the initial term has 'English' selected as the language.
  3. Added a translation for Spanish and saved it
  4. Created a Taxonomy Term view that dumped out each of the Term names
  5. Set one of the filter criteria to Taxonomy term: Lanuage (= Current user's language)

Viola. Easy enough.

Upvotes: 1

Walls
Walls

Reputation: 4010

Since I don't have all of those installed and setup as well (and complete) as you do I decided to hunt around on forums. I found an article which seems like a similar problem to what you are having. The default language terms were always showing up in this post Localize terms show always the default language.

Hopefully this post/article has some helpful information/steps on how to resolve this issue, check out post 13 in that thread.

Upvotes: 1

Related Questions