title: ASP .NET MVC 3: Modifying validation scripts and Globalizing messages
body: <p>I'm here now because of two things.</p>
  
  <p><strong>First:</strong></p>
  
  <p>I need to modify a jQuery script to fix that decimal separator (dot or coma). In my country (Argentina), we use the coma as the decimal separator, and jQuery.validation uses the dot.
  I managed myself to change the RegEx and is now fixed, but my question come from other side.</p>
  
  <p>Whenever I add a View, it references two scripts</p>
  
  <pre><code>&lt;script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Since I've modified directly the jquery.validate.js only, how can I refactorize this into the min (I don't know the differences between them, so a little bit of water at this point would be great). ¿It would be better to extend the script? ¿How? (Tried this <a href="http://rebuildall.umbraworks.net/2011/03/02/jQuery_validate_and_the_comma_decimal_separator" rel="nofollow">LenardG's jQuery validate and the comma decimal separator (MVC)</a> but didn't work :( )</p>
  
  <p>I also don't know if I can change one by another just like that and it will keep working.</p>
  
  <p><strong>Second:</strong></p>
  
  <p>I need to globalize the messages from the jQuery client validation.</p>
  
  <p>For example, when you type a letter in a numeric field (lets say age) it displays a message saying "The field age must be a number."... I've been driving myself crazy looking up the entire solution, over and over for that message (IMHO, work of the devil). But obviously, didn't succeed.</p>
  
  <p>Although the good practices would be selecting the culture and that stuff according to the web browser culture, the web application that I have to do has to let the user of the system be the one who selects the culture (maybe in login page or in a user configuration page, but this doesn't matter).</p>
  
  <p>So, if the user selects the es-AR culture (spanish from Argentina), the message that I wanna show is "El campo edad debe ser un número."; if the user selects the fr-FR culture, the message to show should be (thanks Google translate) "Le champ âge doit être un nombre."</p>
  
  <hr>
  
  <p>Sorry about my english, I hope you can understand my "questions".
  Thanks people ;)</p>