Support » Plugin: Contact Form 7 Datepicker » Language for date/timepicker

Viewing 3 replies - 1 through 3 (of 3 total)
  • In your wordrpress Settings> General > Site Language

    Change that and the form will follow πŸ˜‰

    Greetings,

    KG

    Thread Starter gnorf

    (@gnorf)

    Hi there and thanks.

    The language setting in WP was already in order/changed but seems to have no impact on the datepicker function.

    Any other altrnatives?

    Rgds

    Hi gnorf,
    There is always the hard way of doing it πŸ˜›

    Go to your theme editor under: Appearance > Editor, and find footer.php

    1. Put the script below just below the “<?php wp_footer(); ?>” or just above the “</body>” tag. (depends on your theme)
    —-
    <script type=”text/javascript” src=”https://raw.githubusercontent.com/jquery/jquery-ui/master/ui/i18n/datepicker-de.js”></script&gt;
    —-

    you need to change the “-de” part to whatever language you want…
    look here for the list of languages: https://github.com/jquery/jquery-ui/tree/master/ui/i18n

    Mine is “de” as in German… you need to find yours.

    2. Find the file below and remove or comment out line 55.
    The piece of code you looking for on line 55 looks like this : dateFormat: ‘yy-mm-dd’,

    —-
    /wp-content/plugins/contact-form-7/includes/js/scripts.js
    —-

    This will allow you to change the date format to the one in your country.
    (which is correctly specified inside the first .js you put inside the footer.php)

    You can skip step 2. if you don’t care about date format.

    3. Refresh your browser and take a look.

    4. Done.

    Step 1 is safe, Step 2 will be gone once you update contact form 7.

    This solves the problem until Contact Form 7 lets us choose our own dateFormat and Localization of the jQuery datepicker in future updates… PLEASE?

    Greetings,

    K G

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Language for date/timepicker’ is closed to new replies.