forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r180031 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap
Date Sat, 04 Jun 2005 22:38:43 GMT
Author: thorsten
Date: Sat Jun  4 15:38:42 2005
New Revision: 180031

URL: http://svn.apache.org/viewcvs?rev=180031&view=rev
Log:
Added basic support for i18n in the viewHelper.xhtml plugin

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap?rev=180031&r1=180030&r2=180031&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap
Sat Jun  4 15:38:42 2005
@@ -29,6 +29,13 @@
         src="org.apache.cocoon.transformation.CIncludeTransformer"/>
       <map:transformer name="xinclude"
         src="org.apache.cocoon.transformation.XIncludeTransformer"/>
+      <map:transformer name="i18n" src="org.apache.cocoon.transformation.I18nTransformer">
+	      <catalogues default="contracts">
+	        <catalogue id="other" name="OtherMessages" location="messages"/>
+	        <catalogue id="contracts" name="ContractsMessages" location="messages"/>
+	      </catalogues>
+	      <cache-at-startup>true</cache-at-startup>
+	    </map:transformer>
     </map:transformers>
     <map:serializers>
 	   <map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html" name="xhtml"
pool-grow="2" pool-max="64" pool-min="2" src="org.apache.cocoon.serialization.XMLSerializer">
@@ -120,6 +127,9 @@
      <map:transform src="resources/stylesheets/contract.xsl">
       <!--Which output format?-->
       <map:parameter name="format" value="xhtml"/>
+     </map:transform>
+     <map:transform type="i18n">
+       <map:parameter name="locale" value="{request:locale}"/>
      </map:transform>
      <map:serialize type="xml"/>
    </map:match>



Mime
View raw message