Uploaded image for project: 'Magnolia Standard Templating Kit (closed)'
  1. Magnolia Standard Templating Kit (closed)
  2. MGNLSTK-552

I18n does not work for the Navigation

    XMLWordPrintable

Details

    • Yes

    Description

      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:

      SubNavigation.java
      NavigationItem mp = new NavigationItem(new I18nContentWrapper(child), this, depth-1, allOpen);
      

      There is also Patch included.

      Thanks,
      Bobi.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                fgrilli Federico Grilli
                bobi4597 Bozidar Ilievski
                Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Time Tracking

                    Estimated:
                    Original Estimate - 1h
                    1h
                    Remaining:
                    Remaining Estimate - 1h
                    1h
                    Logged:
                    Time Spent - Not Specified
                    Not Specified