cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Lutz <mat...@gmx.at>
Subject I18NMessage in ValidationError not translated.
Date Tue, 23 Aug 2005 15:50:11 GMT
Hi list !

I think I am missing something, but I can't figure out where...

Short :-) description:

I add a ValidationError to a form widget in a custom binding, this is 
done via (tErrorMessage is the message key, and yes, I double checked it 
exists in my message catalogue :-) ):

        ((Field) frmModel).setValidationError(new 
ValidationError(tErrorMessage, true));

The form is displayed using some pipelines. The first one is a generic 
html wrapper, that calls the second one.

        <map:match pattern="*.*.html">
          <map:aggregate element="root">
            <map:part src="cocoon:/menu/{0}"/>
            <map:part src="cocoon:/c_{2}/{1}.xml" element="content" 
label="content"/>
          </map:aggregate>
          <map:transform 
src="context://resources/xsl/html/aim-page2html.xsl">
            <map:parameter name="contextPath" 
value="{request:contextPath}"/>
            <map:parameter name="page" value="{0}"/>
            <map:parameter name="locale" value="{../locale}"/>
          </map:transform>
          <map:transform type="i18n" />

          <map:serialize type="html"/>
        </map:match>

        <map:match pattern="c_formobj/*.xml">
          <map:generate src="cocoon:/{1}.obj.form.template.xml"/>
          <map:transform type="forms" label="content1" />
          <map:transform 
src="context://resources/xsl/forms/forms-samples-styling.xsl">
            <map:parameter name="resources-uri" 
value="{request:contextPath}"/>
          </map:transform>

          <map:serialize type="xml"/>
        </map:match>

Everything is ok but the translation of the errormessage.

I checked the logs with "grep I18n sitemap.log" and there is no 
Translation not found, which is the standard message for not defined 
messages I think.

What am I missing ? Wrong logfile ? Wrong message catalogue ? Is this 
working at all ?

Please help, this one is really driving me crazy :-) !

thanks,
tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message