Can't get vocabulary name in breadcrumb translated. i18n shows translated versions in some other places, but not in breadcrumbs. As example, I have "Category" vocabulary translated as "Рубрики" through the "Translate interface" page. In second site language ( Russian ) my breadcrumbs look like this: Главная » Category » Игры, where Category is vocabulary name and Игры is term name ( [HOME] >> [VOCABULARY] >> TERM >> [TERM] pattern ). I want to show Category as translated name, so breadcrumb should look like: Главная » Рубрики » Игры. But I can't get it worked.

I've read through i18n and Taxonomy Breadcrumb issues, but didn't find anything helpful for my case, except one thing: in some threads some guy mentioned that i18n module code was refactored in 1.2-->1.3 version update and there is need to change tt() function to i18nstrings() function in one particular patch to make in work with updated i18n module. But it's was in mid-2010, so I don't really know - is this have something to do with Taxonomy Breadcrumb? Sorry for it if this is lame questions, just trying to suggest something to look at.

Basically I have two questions:

1) Is there anyone have worked translatable vocabulary names in Taxonomy Breadcrumb with i18n 6.x-1.9?
2) Didn't I forget something to do with translations? ( I mean - I just have to translate vocabulary name through Translate Interface page, right? ).

Any help appreciated.

Comments

Treidge’s picture

Status: Active » Closed (fixed)
Anonymous’s picture

How was the issue fixed? I am experiencing this as well.

Treidge’s picture

Note: Applies to latest dev-version and Drupal 6 version only

Open taxonomy_breadcrumb.inc, locate 135 row and change it to following:

$breadcrumb[] = l(_taxonomy_breadcrumb_tt("taxonomy:vocabulary:$term->tid:name", t($vocabulary->name)), $vocabulary_path);

Basically you just need to wrap $vocabulary->name in t() function to enable its translation (already done in code above). After this just use Drupal's Interface Translation feature to translate vocabulary names.