Hi Jason,
not sure about that, i haven't tested it for a while, but i usually put
the i18n transformer before the actualy cform xsl. This is because
cforms xsl does <xsl:value-of in some places, which sends in output
only the content of the i18n:text and not the i18n:text itself.
Could you give it a try and tell us if it works correctly moving the
i18n transformer after the <map:transform
src=""/> ?
Simone Gianni
Jason Johnston wrote:
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="" 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=""/>
<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="">
<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]
|
- Re: [CFORMS] required fields error translation Simone Gianni
-