title: Localization of Required field validation message based on language selection from application in MVC
body: <p>I am developing one MVC4 application, in that there is option for language seletion in my application &amp; based on that selected lanaguage, all label &amp; messages are displayed.In this application i have put one required field validation of MVC, and it will display validation message in english only.I have created two different xml file for Localization in my application folder i.e Resource.resx for english lanaguage &amp; Resource.de-DE.resx for German langauge. I have used the following code in my Model class :</p>
  
  <pre><code>    [Required(ErrorMessageResourceType = (typeof(MyFolder.MyResource.Resource)), ErrorMessageResourceName= "FromDateRequiredMessage")]
      [Display(Name = "FromDate", ResourceType = typeof(MyFolder.MyResource.Resource))]
      public DateTime FromDate { get; set; }
  </code></pre>
  
  <p>So here i have Resource.resx xml file and in that i have Key is 'FromDateRequiredMessage' which is same key as in Resource.de-DE.resx german file but different value.Also i have make the follwing changes in my in web.config file for globalization : </p>
  
  <pre><code>&lt;globalization enableClientBasedCulture="true" culture="auto" uiCulture="auto"/&gt;
  </code></pre>
  
  <p>So, i want that when i select the german language from my application, then it should show me validation error in german language.But here it will show me validation message in english only.</p>
  
  <p>So, now what can i do for this? Please hel me.</p>