I have this code for my entities.
I wonder if there is a way to replace the hard coded text with some reference to resource files depending on the language selected by the user.
public class Applicant
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int ApplicantID { get; set; }
[Required(ErrorMessage = "Name is required")]
[StringLength(20, MinimumLength = 3, ErrorMessage = "Name should not be longer than 20 characters.")]
[Display(Name = "First and LastName")]
public string Name { get; set; }
You are talking about Localization.Check this
http://adamyan.blogspot.com/2010/02/aspnet-mvc-2-localization-complete.html