Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7191581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:45:38+00:00 2026-05-28T19:45:38+00:00

I’m here now because of two things. First: I need to modify a jQuery

  • 0

I’m here now because of two things.

First:

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.

Whenever I add a View, it references two scripts

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

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 LenardG’s jQuery validate and the comma decimal separator (MVC) but didn’t work 🙁 )

I also don’t know if I can change one by another just like that and it will keep working.

Second:

I need to globalize the messages from the jQuery client validation.

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.

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).

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.”


Sorry about my english, I hope you can understand my “questions”.
Thanks people 😉

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T19:45:39+00:00Added an answer on May 28, 2026 at 7:45 pm

    I’m coding a contrib project for MVC3 which includes an easier way to handle localization of messages: http://blog.gauffin.org/2011/09/easy-model-and-validation-localization-in-asp-net-mvc3/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.