Hi,

I need to provide localized messages for my model.
After some digging I discovered that I can use CachedValidationRegistry
(ResourceManager) so in the
IMonoRailContainerEvents.Initialized()  I'm doing the following:

Thread.CurrentThread.CurrentCulture =
    Thread.CurrentThread.CurrentUICulture = new CultureInfo( "nl-
NL" );

ResourceManager resourceManager =
    new ResourceManager( "Castle.Components.Validator.Messages",
                                            typeof
( ValidatorRunner ).Assembly );

container.ValidatorRegistry = new CachedValidationRegistry
( resourceManager );

And I would expect to have localized messages, but I still get the
english ones.
What am I doing wrong?

Thank you,
Dan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to