For base validators all resources are deployed with NHV.If you want, you can
change the resource using a resource-editor (from microsoft of some other
free).

2009/3/2 Marc Climent <[email protected]>

>
> Hi Fabio.
>
> I know in the tag I can specify the message and as well in my custom
> validators but I need localization.
>
> I see in the link examples this:
>    WithMessage("{floor.out.of.range}")
>
> The "{floor.out.of.range}" message is somewhere defined? How can I use
> this kind of templates for message localization?
>
> Thanks.
>
> On 2 mar, 19:19, Fabio Maulo <[email protected]> wrote:
> > If what you need is only change the message you don't need the
> > interpolator <property
> > name="Past">
> > <past message="your own message"/>
> > </property>
> >
> > If you can use the NHV trunk...
> http://nhforge.org/blogs/nhibernate/archive/2009/02/18/nhibernate-val...
> >
> > http://fabiomaulo.blogspot.com/2009/02/diving-in-nhibernatevalidator....
> >
> > 2009/3/2 Marc Climent <[email protected]>
> >
> >
> >
> >
> >
> > > Hi,
> >
> > > I've been using NHV and I need to change the "default" messages.
> >
> > > I can't change the ValidatorEngine.Interpolator at runtime (I could
> > > create a DefaultMessageInterpolator and initialize it with a different
> > > bundle and pass it, but I can't and I think I shouldn't) and I can't
> > > configure the resource bundle via XML, or at least I couldn't find how
> > > to do it.
> >
> > > Maybe I'm missing something but it seems that the custom resource
> > > functionality is there but I can't use it right now.
> >
> > > As well, i found this in ClassValidator:
> > >        messageBundle = factory.ResourceManager ??
> GetDefaultResourceManager
> > > ();
> > >        defaultMessageBundle = GetDefaultResourceManager();
> >
> > > But digging into the factory, is created internally by the
> > > ValidatorEngine specifying a null ResourceManager.
> >
> > > So the question is... do I have to create my own resource bundles
> > > overriding the original ones or is there a better way to customize the
> > > messages?
> >
> > --
> > Fabio Maulo
> >
>


-- 
Fabio Maulo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to