Thanks, Jason.  Yeah, I have that defined just as you've written it
there.

> -----Original Message-----
> From: Jason Johnston [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, February 14, 2006 11:15 AM
> To: users@cocoon.apache.org
> Subject: Re: [CFORMS] required fields error translation
> 
> 
> > For the life of me, I can't figure out how to translate the 
> i18n error 
> > messages for required fields...  I did find this thread 
> that reports a 
> > bug that should be fixed by now (I'm on Cocoon 2.1.8): 
> > http://java2.5341.com/msg/97625.html
> >
> > Can anyone confirm that this was indeed fixed?
> >
> > If so, then I suppose it's most likely a problem with my sitemap.  
> > I've tried various permutations of the following with no luck:
> >
> > <map:match pattern="forms/view/*.jx">
> >     <map:generate type="jx" src="forms/view/{1}.xml" 
> label="content1">
> >      <map:parameter name="locale" value="{flow-attribute:locale}"/>
> >     </map:generate>
> >     <map:transform type="browser-update"/>
> >     <map:call resource="simple-page2html">
> >      <map:parameter name="file" value="forms/view/{1}.xml"/>
> >     </map:call>
> >     <map:transform src="context://stylesheets/forms-styling.xsl"/>
> >     <map:transform type="i18n">
> >      <map:parameter name="locale" value="{flow-attribute:locale}"/>
> >     </map:transform>
> >     <map:select type="ajax-request">
> >      <map:when test="true">
> >       <map:serialize type="xml"/>
> >      </map:when>
> >      <map:otherwise>
> >       <map:serialize type="html"/>
> >      </map:otherwise>
> >     </map:select>
> > </map:match>
> 
> 
> Make sure you have defined the i18n catalogue for forms.  It 
> should appear in the configuration for the i18n transformer.  
> Something like (this was pulled from the cforms samples):
> 
>     <map:transformer name="i18n" 
> src="org.apache.cocoon.transformation.I18nTransformer">
>       <catalogues default="other">
>         <catalogue id="other" name="OtherMessages" 
> location="messages"/>
>         <catalogue id="forms" name="messages" 
> location="resource://org/apache/cocoon/forms/system/i18n"/>
>       </catalogues>
>       <cache-at-startup>true</cache-at-startup>
>     </map:transformer>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to