I'm using Views, Internationalization, and Views Translation, and I've made a block View with arguments that lists all the taxonomy terms if the argument is not present. (i.e. it's making a taxonomy term list that links to the page views that have the arguments).

So far, so good. Now this part of the site is bilingual, and I've translated my taxonomy terms. The problem is that (without the patch I'm about to attach), the taxonomy terms in my block view are not showing up translated to the user's current interface language.

I figured out how to fix this a while back, but realized I didn't ever file an issue with my patch... so here it is. I'll attach the patch in a comment shortly.

CommentFileSizeAuthor
#1 976872.patch1.91 KBjhodgdon

Comments

jhodgdon’s picture

Status: Active » Needs review
StatusFileSize
new1.91 KB

Here are the two changes I had to make to Views to get this to work. Patch is against current 6.2 dev branch. There may be a better way, and I realize Views might not want to include this change, but it does work...

dawehner’s picture

Oh views doesn't support the tt() function internally.
If you need this it should be a custom handler of i18n.

jhodgdon’s picture

Title: Taxonomy terms are not translated » Taxonomy terms are not translated in Views
Project: Views (for Drupal 7) » Internationalization
Version: 6.x-2.x-dev » 6.x-1.x-dev
Component: taxonomy data » Miscellaneous

OK. I guess it should be part of Internationalization Views then, and Internationalization Views should have the correct taxonomy handlers?

jhodgdon’s picture

Component: Miscellaneous » Code

Changing component -- you don't seem to have a Component defined for the Views sub-module.

dawehner’s picture

Project: Internationalization » Internationalization Views
Version: 6.x-1.x-dev » 6.x-2.x-dev

This seems the be the right project.

jhodgdon’s picture

Status: Needs review » Closed (duplicate)