Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1131

i18n: do not enforce a flat node hierarchy below mix:language

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • I18n 2.0.2
    • I18n 2.0.2
    • Extensions
    • None

    Description

      Currently the search for translations enforces a flat hierarchy below the mix:language node (that eg. says 'de' for the translation language) for the sling:Message nodes that hold the single translations. If you have many translations, eg. thousands, the flat hierarchy can get slow in Jackrabbit, so it would be good to support a nested hierarchy as well.

      The change boils down to the query that is done. Currently it looks like this (eg. for fetching all translations for 'de'):

      //element(,mix:language)[@jcr:language='de']//(@sling:key|@sling:message)

      It should introduce a descendant-or-self step:

      //element(,mix:language)[@jcr:language='de']///(@sling:key|@sling:message)

      Attachments

        1. SLING-1131-second-with-tests.patch
          19 kB
          Alexander Klimetschek
        2. SLING-1131.patch
          1 kB
          Alexander Klimetschek

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alexander.klimetschek Alexander Klimetschek
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: