title: How localize ErrorMessage in DataAnnotation?
body: <p>Using MVC 5 I need to localize an ErrorMessage for a DataAnnotation attributes.
  I receive the following error</p>
  
  <p>ERROR</p>
  
  <blockquote>
    <p>An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type</p>
  </blockquote>
  
  <p>In model</p>
  
  <pre><code>[Compare("Password", ErrorMessage = Resources.Account_Register_ConfirmPasswordErrorMessage)]
  public string ConfirmPassword { get; set; }
  </code></pre>
  
  <p>Any idea how to fix it?</p>