New Post: Custom Localization in Validators
Ah, I see what you mean. When you said that you wanted to integrate with FluentValidation, I assumed you meant that you wanted to replace the default error messages. What you want is certainly...
View ArticleNew Post: Custom Localization in Validators
Got it ... didn't know that. I am going to give it a try. Thank you for the code example! Miguel
View ArticleNew Post: Validating using 2 fields
How we can we have function with parameter as the parent object being validated. In the mentioned example RuleFor(customer => customer.Surname).Must((customer, surname) => surname !=...
View ArticleNew Post: Set language to German
This is a basic issue. I would like the default messages to be German. How do you configure this? The documentation says that FluentValidation supports German out of the box. But it does not say how...
View ArticleNew Post: Set language to German
Hi FluentValidation uses the standard .net mechanism for localization using resource files and resource types. The default language is set based on the thread's CurrentUICulture property. This is...
View ArticleNew Post: Set language to German
Thanks Jeremy, I will read that article. So there is no other configuration of FluentValidation necessary, is there? I guess I will need the translations (ressources). I installed the DLL using NuGet...
View ArticleNew Post: Set language to German
Ok, I've read the article and it was very informative. But I still don't know how to get the German messages. I downloaded the latest FluentValidation ZIP file. It contains folders for several...
View ArticleNew Post: Set language to German
They are located in the bin folder now, but some messages are still in English.The following code works and creates localized messages for the property "GeoLat" which is of type double?: RuleFor(h...
View ArticleNew Post: Set language to German
Hi This is not a FluentValidation error message. This message comes from ASP.NET MVC itself - this is generated by the framework's model binding process before FluentValidation has a chance to be...
View ArticleNew Post: (SOLVED) Set language to German
Thank you for your help Jeremy. I'll see what I can do about this and maybe postback here so that others may benefit from my problem.
View ArticleNew Post: (SOLVED) Set language to German
Here is the solution: http://stackoverflow.com/questions/3156488/localize-default-model-validation-in-mvc-2 Then simply add another file called Messages.de-DE.resx with the German translation.
View ArticleReviewed: 3.4 (Sep 13, 2012)
Rated 5 Stars (out of 5) - Works great in our ASP.NET MVC 3 content management system.
View ArticleNew Post: Assembly signing
Hi! I would like to know why the assembly is not signed anymore. Someone said, there are signed nuget versions of the assemblies, but what about the people who are not using, or unable to use, nuget?...
View ArticleNew Post: Assembly signing
If you need signed versions then currently you'll need to use NuGet or build the source yourself, but I'll try and get a signed version uploaded to codeplex sometime this week. Jeremy
View ArticleNew Post: Using Fluent Validation in editor templates
There is a prototype of one in the FluentValidation source repository, but it is not shipped as part of the release and is not something that I support. Jeremy
View ArticleNew Post: To validate properties
You can use When conditions to do this. Example (untested): RuleFor(x => x.p1).NotNull().When(x => x.p2 != null); RuleFor(x => x.p2).NotNull().When(x => x.p1 != null); RuleFor(x =>...
View ArticleNew Post: Using Fluent Validation in editor templates
It's so interesting :D After I posted the question, I decided to build a fluent template engine. And now, when I take a look at your solution, I see they are too closed together. However, if I have...
View ArticleNew Post: VS 2010 MVC 2 and Custom method.
I'm trying to understand the execution sequence of Custom method. I've MCV2 and VS 2010. I've different rules defined in the c'tor and Custom method. I'm not sure at which stage the Custom method is...
View Article