title: Asp.Net MVC 2 - Changing the PropertyValueRequired string
body: <p>Using a resx file in the App_GlobalResources directory, I've been able to change the default message for the PropertyValueInvalid string of the model validators.</p>
  
  <p>But it doesn't work to translate the message when a value is required (PropertyValueRequired.)</p>
  
  <p>In the Global.asax.cs Application_Start() I've changed the resource class key, like this:</p>
  
  <pre><code>DefaultModelBinder.ResourceClassKey = "Messages";
  </code></pre>
  
  <p>And in the Messages.resx files I've put two entries:</p>
  
  <ul>
  <li>"PropertyValueInvalid" => "O valor '{0}' é inválido para o campo {1}."</li>
  <li>"PropertyValueRequired" = > "É necessário digitar o {0}."</li>
  </ul>
  
  <p>Thanks.</p>