• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Change datepicker language

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Change datepicker language

This topic is: not resolved

Tagged: datepicker, language, script, translation

  • This topic has 1 reply, 2 voices, and was last updated 10 years ago by Marcy.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • June 2, 2015 at 5:57 am #154523
    Hashim
    Member

    Hi there,

    Thank you for taking the time to read my support question. I realize that you're putting in your own free time to help and I want you to know that I really appreciate it!

    Hopefully you can help me out with this. I've been searching for days in hope of finding a solution to this problem. But everytime I find something, it's in a way I can't understand it.

    I'm using Ninja Forms for all my forms. And I'd like to make use of the datepicker in my form. But the datepicker isn't a Ninja Forms functionality. Ninja Forms uses the WordPress datepicker.

    I want to have the datepicker shown in another language. And I found this piece of code which contains the translation for the datepicker:

    http://jquery-ui.googlecode.com/svn/tags/latest/ui/i18n/jquery.ui.datepicker-nl.js

    The only problem is that I don't what to do with this code in my theme. Unfortunately my website is in maintenance mode, so I can't show you my theme. But I'm using the Lifestyle Pro theme of StudioPress.

    Could you give me some sort of explanation what to do with this code, so that the datepicker in my form shows in my preferred language?

    Thank you in advance!

    Sincerely,

    Hashim

    http://aziemafatima.com
    June 2, 2015 at 1:52 pm #154600
    Marcy
    Participant

    You should be able to just enqueue it in your functions.php.

    Find the section that enqueues the Google fonts, and add this line

     //Add datepicker translation js
       wp_enqueue_script( 'translate_datepicker_js', '//jquery-ui.googlecode.com/svn/tags/latest/ui/i18n/jquery.ui.datepicker-nl.js' );

    so it looks like:

    //* Enqueue Droid Sans and Roboto Slab Google fonts
    add_action( 'wp_enqueue_scripts', 'lifestyle_google_fonts' );
    function lifestyle_google_fonts() {
    
    	wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Droid+Sans:400,700|Roboto+Slab:400,300,700', array(), CHILD_THEME_VERSION );
    
        //Add datepicker translation js
       wp_enqueue_script( 'translate_datepicker_js', '//jquery-ui.googlecode.com/svn/tags/latest/ui/i18n/jquery.ui.datepicker-nl.js' );
    	
    }

    The "translate_datepicker_js" is just a tag (name), I gave it; you can use anything. And then it just enqueues the js file that you listed.

    I have not tested to see if this works or not. This is just how to add a jQuery script to your theme.


    Marcy | Amethyst Website Design | Twitter

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble