I created a custom feedback form, but have had an issue getting the menu item to translate properly. The cause of the issue seems to be that I want the menu item nested within the site structure, not listed as one of the main links. If I leave the menu item as it defaults, it translates fine.
If, however, I use the menus page to move the item to somewhere within navigation structure, it ceases to be translated. After some trial and error, I was able to figure out that the line that no longer worked was the one in the i18nmenu_translate_all function of i18nmenu.module that reads:
if($item['type'] & MENU_CREATED_BY_ADMIN) {
If I remove the condition for MENU_CREATED_BY_ADMIN, it translates fine. What are the potential problems created by doing this? Any downsides?
Comments
Comment #1
jose reyero commented> Any downsides?
Yes, some of the menu items, the ones created by modules, will be translated twice, which could cause unexpected results.
So the solution should be changing that condition, but still limiting the items that are translated.
Comment #2
mandclu commentedHmm, OK, I see your point. Is there some way to get this menu item to pass the condition? Or is there another value I can use besides MENU_CREATED_BY_ADMIN?
Thanks for the feedback!
Comment #3
jose reyero commentedComment #4
jose reyero commentedThis version is not supported anymore. Please check out latest ones.