cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lowe <mel...@gmail.com>
Subject Re: Fixing i18n required messages
Date Thu, 17 Feb 2005 13:39:47 GMT
I found that, and yes of course I have the message keys added.. You
should try it, practice is usually better than theory. I've seen this
mentioned elsewhere, if its a bug I'd prefer to submit a patch when i
enter it rather than just joining a que.

On Thu, 17 Feb 2005 11:40:37 +0100 (CET), Daniele Madama
<d.madama@pro-netics.com> wrote:
> 
> > Hello
> >
> > Could someone nudge me in the right direction (i.e. where to start
> > looking) if i wanted to get a patch in to fix this annoying i18n
> > required messages problem.
> >
> > Thanks
> >
> > Mark
> >
> 
> If you are looking for the i18n of the cforms required message, is already
> done in the o.a.c.forms.formmodel.Field class
> 
> <snip>
>            if (this.value == null && getFieldDefinition().isRequired()) {
>                // Field is required
>                this.validationError = new ValidationError(new
> I18nMessage("general.field-required",
> Constants.I18N_CATALOGUE));
>            } else {
> </snip>
> 
> So the only things is to add the correct message entry in the i18n catalog.
> 
> I hope this is what you need.
> 
> Best regards
> 
> --
> Daniele Madama
> 
> Pro-netics s.r.l.
> Via Elio Lampridio Cerva 127/c
> Roma
> Tel. 0651530849
> http://www.pro-netics.com
>

Mime
View raw message