Hi Hippo addicts ! :)


In the explorer, doclisting, properties component. It seems there is a 
i18n transformer missing in the explorer sitemap.xmap.

The component Properties based on proplist.xml or, in this case, on the 
properties.xml located in the types folder.


Here the default pipeline :

<!--
            Get the properties file for a resource
            {1} = resource path, e.g. /content/documents/foo.xml
            -->
          <map:match pattern="properties/**">
            <map:aggregate element="root">
              <map:part element="propfind" src="cocoon:/propfind-type/{1}"
/>
              <map:part element="model" src="{site:model}"/>
            </map:aggregate>
            <map:transform src="transformers/propform/properties.xsl"/>
            <map:transform type="include"/>
            <map:serialize type="xml"/>
          </map:match>


The properties component (properties.xml in types) :


   <Properties xmlns:i18n="http://apache.org/cocoon/i18n/2.1";>
     <Property>
       <Name>comment</Name>
       <DisplayName><i18n:text>be.smals.cms.collection.properties.comment
</i18n:text></DisplayName>
       <Namespace>http://hippo.nl/cms/1.0</Namespace>
       <NamespacePrefix>cms</NamespacePrefix>
       <Datatype>string</Datatype>
     </Property>
  </Properties>

The i18n:text is not translated because there is no i18n transformer. 

This pipeline correct it :

<!--
            Get the properties file for a resource
            {1} = resource path, e.g. /content/documents/foo.xml
            -->
          <map:match pattern="properties/**">
            <map:aggregate element="root">
              <map:part element="propfind" src="cocoon:/propfind-type/{1}"
/>
              <map:part element="model" src="{site:model}"/>
            </map:aggregate>
            <map:transform src="transformers/propform/properties.xsl"/>
            <map:transform type="include"/>
            <!-- 
            **   MODIF JECD 
            **
            **
            **   ADD i18n transform for properties component (explorer)
            **
            ** 
            **
             -->
            <map:transform type="i18n">
              <map:parameter name="locale" value="{session-attr:locale}"/>
            </map:transform>
            <map:serialize type="xml"/>
          </map:match>


Can you confirm that or I'm on the wrong way ?

Thank you all.

_______________
  JC Duchaussee 
      WCMTech
          PI 716
--------------------------
______________________________________________________________________________________________
Smals sluit elke aansprakelijkheid uit in verband met de juistheid, de 
volledigheid of het tijdig toekomen van de informatie in deze e-mail. Aan 
deze e-mail kunnen geen rechten worden ontleend en deze e-mail houdt in 
geen geval een erkenning van welkdanige aansprakelijkheid in.
Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht 
niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden 
en het bericht te vernietigen.

Smals décline toute responsabilité quant à l'exactitude, à l'exhaustivité 
et au délai de transmission des informations contenues dans cet e-mail. 
Aucun droit ne peut être revendiqué sur cet e-mail et cet e-mail 
n'implique en aucun cas une reconnaissance de responsabilité, quelle 
qu'elle soit.
Ce message s'adresse uniquement au destinataire. Si ce message ne vous est 
pas destiné, nous vous prions de nous le signaler immédiatement et de 
détruire le message. 
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to