Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-1540

Bad i18nTransformer for the servercom pipeline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.0RC1
    • None
    • Général
    • None

      The servercom pipeline is defined in the plugin core sitemap :

      <map:match pattern="servercomm/messages.xml">
      	<map:generate type="dispatcher"/>
      	<map:serialize type="xml"/>
      </map:match>
      

      The dispatcher uses the cocoon://_plugins url for dispatching request. This kind of url is redirect by the kernel sitemap, so the i18n transformer used is the runtime i18n transformer which does not known the skin catalog.

      Thus, all i18n label from the skin catalog are unstranslated when using the servercomm API.

      • 1st bad solution
        Re-define the i18n transformer of workspace web (org.ametys.web.cocoon.I18nTransformer) in each plugins wihich need i18n labels from skin.
      • 2nd solution
        Move the i18n transformers declaration in a org.ametys.runtime.cocoon.SitemapConfigurationExtensionPoint in plugin.xml

            Unassigned Unassigned
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: