I am trying to localize validation messages in an ASP MVC3 model class.
[RegularExpression(@"^\d*$", ErrorMessage = "Has to be numeric.")]
public Int32? X{ get; set; }
We have to retrieve the localized strings from a database using a method from a given resource handler, so no common resource files are possible.
What is the prefered way to do this?
Thanks in advance!