cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Johnston" <coc...@lojjic.net>
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):
> 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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message