And looking just that little bit further I see that someone's gone and done an implementation that covers it already...in which case the issue should be set as resolved?
Symon. Symon Rottem http://blog.symbiotic-development.com On Thu, May 27, 2010 at 7:10 PM, Symon Rottem <[email protected]> wrote: > Ah, looking further I see that the resource manager is specifically the > Castle.Components.Validator.Messages resource from the validator assembly, > so there'd need to be some way to allow the validator to access the user's > resources as well. > > Hm. > > Symon. > > Symon Rottem > http://blog.symbiotic-development.com > > > On Thu, May 27, 2010 at 6:51 PM, Symon Rottem <[email protected]> wrote: > >> I was looking at *COMP-ISSUE-37* on donjon today about internationalizing >> user provided error messags and was thinking of the following: >> >> How about if a MessageKey property was provided on each validation >> attribute? If this was set then the value would be transferred to the >> MessageKey property on the Validator, overriding the default value. >> >> Taking this approach would allow the existing AbstractValidator >> functionality to continue as it does at present. >> >> In the event of a conflict between the MessageKey property and the >> ErrorMessage property the ErrorMessageProperty could still take preference - >> in effect maintaining the existing behavior. If only the MessageKey >> property has been set then the error message value would be looked up from >> resources as usual, however since the MessageKey is developer provided the >> developer can also provide their own custom resources with their custom >> messages there. >> >> Thoughts? >> >> Symon Rottem >> http://blog.symbiotic-development.com >> > > -- You received this message because you are subscribed to the Google Groups "Castle Project Development List" 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/castle-project-devel?hl=en.
