cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Johnston" <>
Subject Re: [CFORMS] required fields error translation
Date Tue, 14 Feb 2006 18:15:12 GMT
> 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):
> 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"
      <catalogues default="other">
        <catalogue id="other" name="OtherMessages" location="messages"/>
        <catalogue id="forms" name="messages"

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message