Hello everyone; I'm building some multi-lang online documentation for a client with Drupal so they can log in and edit the docs, add new translations as they go, etc. Overall I've been very impressed with the project -- although it'll certainly be nice to see tighter integration with the i18n internationalization stuff. It's one of the most flexible 'CMS' packages I've toyed with and the multi-site stuff is great.

Anyway, I have custom paths, menus, localization, and i18n all enabled and have been using book pages to create a flexible menu hierarchy for moving through the docs. After much fiddling, everything seems to work well. Everything EXCEPT the breadcrumb trail, that is.

For whatever reason, when I'm viewing the Japanese version, the breadcrumb appears in English (all except the first link, which I've noticed is handled differently ie not pulled from the menu table), and if I click on one of the items in it I'm taken to the English version of the node I would be requesting (ie q?=en/page-one instead of ja/page-one). So... something's not right.

I went fishing through the includes, and noticed that in menu_get_menu() there's a note that says the items (title, description, path, etc) in $menu should already be translated and if I trace it further back to _menu_build... well, I'm still lost. I'm a fairly accomplished PHP dev but I'm just not familiar with the inner workings here yet (especially when it comes to i18n). I'm going to keep plugging away, but thought I'd post here in hopes that someone else has had a similar issue. Please let me know if you have any suggestions, thanks.

..nap

Comments

pembeci’s picture

I experienced smt like that at taxonomy_dhtml page. The breadcrumbs and the page title was saying "categories" and after I added the related string in my language, there was no change. I even changed the module source code where I think the title was assigned (the funtion implementing the hook_menu) but it didn't help. Then at the menus administration page (?q=admin/menu) I noticed that categories menu item was disabled. When I enable the menu item, drupal picked up the translated string. I didn't try to understand what happened looking at the code but my guess was that it was related to the caching of menu items. So may be you can try disabling and then enabling the whole menu module or try disabling and then enabling individual menu items which are used to generate the breadcrumbs.

napx42’s picture

Thanks for the suggestion. I just tried it and no-go :(. I thought about the cacheing issue too and even went as far as to run a sql query on the db to clear out the cache table. Any other ideas are very much appreciated. Thanks in advance.