Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Date picker not automatically translated

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • anthos
    #38557

    Hi!
    I have all my web site in Italian, but I do not manage to get Date Picker months to be translated. I recently activated the “Load jQuery UI i18n files” in Settings->Javascript, but I keep on getting months in english.
    Can you help me?
    This is the page, currently under development:
    http://www.amiciperlacitta.it/news/la-bussola/ricerca-avanzata/

    Thanks

    Ross Moderator
    #38561

    Did you set the language of WordPress to Italian?

    anthos
    #38565

    Thanks for your fast reply.
    Yes, it is set to italian!
    I am trying to add code to my functions.php like I read on this post:
    https://support.searchandfilter.com/forums/topic/poste-date-where-translate/#post-31457

    But it does not work, even if it loads the jquery script ( checked on the source code).
    Should the datepicker field have some attribute that is missing?
    I read in jquery $.datepicker.regional[‘it’] …

    anthos
    #38609

    I finally added this to my functions.php (my localization is for italian):

    add_filter( ‘wp_footer’ , ‘rc_localize_datepicker’ );
    /**
    * Localize datepicker fields
    *
    * @access public
    * @since 1.0
    * @return void
    */
    function rc_localize_datepicker() {
    wp_enqueue_script(‘jquery-ui-i18n-it’, ‘http://jquery-ui.googlecode.com/svn/tags/latest/ui/i18n/jquery.ui.datepicker-it.js’, array(‘jquery-ui-datepicker’));
    }

    And it works!

    Ross Moderator
    #38658

    Thanks for the update 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘Search & Filter Pro’ is closed to new topics and replies.