PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

date field translated

  1. I need to translate the calendar shown in a date field into Spanish and also I need the weeks to start on monday not on sunday. How could I do that?
    Here is the page where I have the form, in case you need to take a look.

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  2. David Peralty

    Here is the datepicker we use, and I've specifically linked to the Localization section: http://jqueryui.com/datepicker/#localization

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  3. I'll take a look, thanks for the quick response.

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  4. I've checked the Datepicker widget documentation and I've learned that I have to use this line of code:

    $( ".selector" ).datepicker({ firstDay: 1 });

    But where do I put it?

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  5. David Peralty

    You would put it in your theme's header.php file wrapped in script tags.

    Posted 11 years ago on Wednesday May 29, 2013 | Permalink
  6. Sort it, thanks.

    Posted 11 years ago on Tuesday June 4, 2013 | Permalink
  7. David Peralty

    Glad to hear it. All my best!

    Posted 11 years ago on Tuesday June 4, 2013 | Permalink
  8. Someone sent me an email asking how did I fix it. Well I'll publish here what I did in case anyone else need it:

    • Edit the file: /wp-content/plugins/gravityforms/js/jquery-ui/ui.datepicker.js
    • in line 72 modify "fistDay: 0" put "fistDay: 1" instead
    • In the same file I have also translated the fields: dayNames, dayNamesShort and dayNamesMin.
    Posted 11 years ago on Monday August 26, 2013 | Permalink
  9. Richard Vav
    Administrator

    We would advise against editing the plugin files as any changes made would be lost during plugin updates, here's the page from the documentation about where to put custom code: http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F

    If after reading the jQuery UI documentation anyone still requires assistance with localizing the datepicker please open a new support ticket or a priority support ticket if you are a developer license holder. Thank you.

    Posted 11 years ago on Tuesday August 27, 2013 | Permalink

This topic has been resolved and has been closed to new replies.