title: C# Validation ErrorMessage changed on language base
body: <p>I have to set validation messages based on language. As you can see bellow I have this for english.</p>
  
  <pre><code>        [Required(ErrorMessage = "Email field is required")]  
          [StringLength(254, MinimumLength = 7, ErrorMessage="Email should be between 7 and 254 characters")]
          [RegularExpression(@"^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$", ErrorMessage= "Please insert a correct email address")]
          public string Email { get; set; }
  </code></pre>
  
  <p>I've looked how can I implement localization for error messages, but all I found is how to do this with resource files. I need to do the localization based on what data I've got form CMS(Sitecore) database. </p>
  
  <p>To map the Sitecore data to C# models I use Glass Mapper. </p>
  
  <p>How this can be implemented?</p>