Localization for [Required(...)] attribute
The CustomerModel class has ErrorMessages for Required and StringLength attributes that are hardcoded english strings.
What about error messages in other languages?
M S, Sep 08, 2010
Localization is a fairly large topic, but essentially it is supported throughout .NET. As such, the Design Pattern Framework supports localization.
To get the errormessage to display in a different language you need something like this:
Remember that in ASP.NET you also need to set the current culture on the Thread, like so:.
Here is a link to a discussion on these issues (but you can easily find many more references on localization).
I hope this gets you going.
Dan McMillan, Sep 10, 2010