Possible Duplicate:
How to change 'data-val-number' message validation in MVC while it generate by helper
Main question is: Where 'data-val-number' message comes from? From what validation rule?
We are localizing our ASP.Net MVC 3 application. For localizing validation messages we decided to use DataAnotationExtension package. So, for each attribute to be localized there is a simple Localized+AttributeName+AttributeAdapter.cs which takes validation rule from attribute and changes validation message. The only problem we have is Numbers. Validation message for numbers comes to client like that:
data-val-number="The field CurrencyAmmount must be a number."
and we don`t know where it comes from.