Reviewed & tested by the community
Project:
Marinelli
Version:
7.x-3.0-beta1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
17 Jun 2011 at 21:50 UTC
Updated:
5 Jan 2013 at 10:06 UTC
Jump to comment: Most recent file
Comments
Comment #1
mavimo commentedPatch
Comment #2
spyros_kte commentedSimple and tested fix.
in your marinelli\theme\theme.inc
find this
$menu = $variables['menu'];
and replace with this
$menu = i18n_menu_localize_tree($variables['menu']);
I assume that you use i18n module for localization. If not this will NOT fix your issue.
Comment #3
Thanos Lappas commentedWorked perfect! :)
Thank you very much!!!
Comment #4
Balbo commentedI'm not sure where to apply the patch in #1 and where the code in the Issue Summary comes from.
I tried the fix in #2 and it is not working.
By choosing the Classic Primary Links in admin/appearance/settings/marinelli (instead of mega drop down), changing the language of the page correctly change the menu-language. When using mega drop down, instead of classic, only the menu of the second languages are shown (correct), with links to the correct language but without translation of the item of the menu.
I'll try to explain better:
About us (-> linked to node/2)
when language is italian become
Su di noi (-> linked to node/3)
With Classic Primary Links is ok, while using mega drop down:
when language is italian REMAIN
About us (-> BUT linked to node/3)
Any hint?
Comment #5
Sprinter commentedThank you soooo much, been struggling around for a fix for a month now, easy and works perfect.
THANKS!
Comment #6
KeepXtreme commentedthank you so much!
But can anybody confirm this is only working for translation sets (different menu items for translated pages) but not for directly translated menu items to static content?
and for the theme.inc I would propose following code in line 114:
replace
with
but again, this helps only with localized menu items, not with translated!