-
Bug
-
Resolution: Fixed
-
Major
-
1.2, 1.2.1
-
-
Yes
-
Empty show more show less
Hi.
I18n does not work for the Navigation when the content for all the languages is in one site tree.
For I18n Content support I have the following setting:
Configuration->/server/i18n/content/class is set to info.magnolia.cms.i18n.DefaultI18nContentSupport.
In the page properties dialog, I have two nodes for the navigation titile: "navigationTitle" and "navigationTitle_de".
When I switch the language between English and German, all the content on the page changes, except for the navigation.
I found that the problem is in info.magnolia.module.templatingkit.navigation.SubNavigation.
The getItems() method, when creating a new NavigationItem should wrap the child Content element with I18nContentWrapper.
Here is the problematic line with the fix applied:
NavigationItem mp = new NavigationItem(new I18nContentWrapper(child), this, depth-1, allOpen);
There is also Patch included.
Thanks,
Bobi.
- depends upon
-
MAGNOLIA-3010 content wrapper: should wrap returned children
- Closed
- is related to
-
MAGNOLIA-2931 templating: the renderer should not only wrap the content for the template but for the model too
- Closed
- supersedes
-
MGNLSTK-500 The horizontal menu cannot be localized due to a hardcoded String in LinkImpl
- Closed