Hi,
We have been using the i18n menus on our site - in our case, however, the menus get translated instead of having different titles for each of the separate links (no code was altered from the i18n module or it's contribs). What we have noticed is that the first time around the site displays the language correctly (I'm going to attach the png - you can notice it in the primary links at the top of the image). However, the second time around, it reverts back to english (will be in the second posting).
I checked out to see what was going on and I found that there are 2 caches for each menu in the cache_menu(let's say the language is de)
1:de
menu:1:de
What I also found out was that the first time when the menu is loaded, the last call that is made to the cache menu sets the data for 1:de with the english menu content. Thus once it was found in the cache, the values were not translated back. So I'm not entirely sure how to recommend fixing this behaviour, unfortunately (the other strange part was that for an english site, it would truncate the cache_menu table. But would not do so for other languages).
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | german_second_time.PNG | 33.08 KB | btmash |
| german_first_time.PNG | 35.13 KB | btmash |
Comments
Comment #1
btmash commentedPosting to attach the second image (this is the image of accessing the same site a second (and any subsequent) time.
Comment #2
btmash commentedHmm...I went through the i18nmenu module. Saw that the cache was saved to menu:$uid:$locale (which just $uid:$locale would be what was being called)...when I changed it to save the cache to the other file as well, things seemed to be working smoothly. Anyone know the side effects?
Comment #3
jose reyero commentedThanks for all the info. Fixed
Comment #4
pixel13 commentedHi.
I'm experiencing the same problem. Can you post a patch?
Thank you.
Comment #5
(not verified) commented