gdybym ozdobić właściwości moich ViewModels z atrybutów, takich jak ten:zlokalizować ([Wymagane] [StringLength] itd.)
public class Vm
{
[Required]
[StringLength(35)]
public string Name {get;set;}
}
mam zamiar dostać angielskich komunikatów walidacji
"this field is required"
"The field Name must be a string with a maximum length of 35"
Jak mogę je przetłumaczyć?
opisałem moje podejście tutaj: http://stackoverflow.com/questions/19398691/ mvc-localization-from-the-database-that-covers-all-messages-required-displayna –