Uploaded image for project: 'Magnolia Diff Module'
  1. Magnolia Diff Module
  2. MGNLDIFF-74

Diff module is not i18n aware on single site with multiple languages

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.6.1
    • 1.2

    Description

      If you setup the i18n STK mechanism for multi-language in a single tree, one can not see the content differences of other languages than the default one.

      Setting up a site definition for each language defining it as default language is in most projects not an option. 3 languages on 5 sites will result in 15 SD configurations. One would have to manage 15 domains for an author and each Author would have to logout and login to all the domains for the language switch.

      For the support issue SUPPORT-3211 I created a simple Snapshot for the customer he can enhance for his needs. For product readiness the implementation needs to be enhanced, for projects it can be used and easily extended for the project needs.

      Situation:

      • The VersionDiffHtmlServlet is dropping two requests to the regarding page's URL.
      • Then provides both rendered outputs to the dasyDiff.
      • Also the URl for the reuests are created by the content's handle and not via the LinkUtil, therefore no language flag is added to the URL.

      Solution:

      • In VersionDiffHtmlServlet set the locale into the AggregationState.
      • In VersionDiffHtmlServlet create the url via LinkUtil I18nContentSupport
      • Add functionality to dynamic dialog to be able to select the locale
      • In VersionDiffHtmlServlet react to the parameter defining the locale and set the value into the AggregationState.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                pmundt Philip Mundt
                cringele Christian Ringele
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD