The problem is that if I'm using Menu Translation (Node) module to translate nodes and the menu as well. My multilingual setup is "Mixed current language (if available) or default language (if not) and language neutral.". I'm using 3 languages. English is default. It works fine. When I'm translating nodes in other languages - everything seams to work fine, but when I'm starting to browse the site using the translated menu - the menu elements sometimes dissapears. Sometimes dissapears all the menu.
I beleive that the problem is with the Path translations. I think the menu titles are translated normaly - it is supported in the nice menus moduel. But I think the problem exists with the menu path translations, which are created by the i18nmenu_node module.
With the same setup - if I'm trying to use for example "[i18n] Primary menu" block created by i18n module - everything is fine!
Comments
Comment #1
mttjn commenteddid you find a solution for this?
Comment #2
Drave Robber commentedWe've been able to solve the issue of missing menu items by wrapping
menu_tree_all_data()on nice_menus.module:338 ini18n_selection_mode('off') / i18n_selection_mode('reset'):This is however a cargo cult style solution as it simply emulates what other modules were seen doing in similar contexts, without thorough understanding of why and how it works. :)
Also, this might be good enough for common use case, but if one wants to call the theme function directly from template or whatever, it probably should be written as:
...so that mode switching isn't done in vain in the case $menu is already supplied to the function.
I'll roll a patch tonight or tomorrow.
Comment #3
nor4a commentedTested on my projects! Works, Thanks a Lot!
Comment #4
nor4a commentedFor capability with not multilingual sites the code should look like:
Comment #5
Drave Robber commentedOf course. :)
I'd rather make it depend on i18nmenu though. At the moment, we don't really know whether the issue is related to i18nmenu_node or wider; #1350380: Translated menu items with children not showing... anyone know why? suggests the latter, but anyway it is related to multilingual menus, not i18n itself. (There are sites, few may they be, that use i18n but not i18menu.)
Please ignore this attachment and see below.
Comment #6
Drave Robber commentedPlease ignore this attachment, too :)
Comment #7
Drave Robber commentedThis is the right patch (at least I hope so).
I need to be more careful. Or more coffee. Or both. :)
Comment #8
Drave Robber commentedComment #9
tfranz commented#7 works for me – thank you very much!
Comment #10
udvranto commentedThe patch did not work for me. :( Cleared the cache after the update.
Comment #11
astonvictor commentedI'm closing it because the issue was created a long time ago without any further steps.
if you still need it then raise a new one.
thanks