Support » Plugin: Ninja Forms - The Easy and Powerful Forms Builder » Everything Need To Know Abotu DatePicker Localisation

Viewing 6 replies - 1 through 6 (of 6 total)
  • Update 1: Title Should Read:
    Everything One Needs To Know About The Ninja Forms DatePicker Language Localisation

    Update 2: After logging on to the Ninja Forms Support, there is not so much as searchable forum, as a FAQ and ‘Support Ticket’ system.

    Provided for your reading pleasure is the ‘how to recreate the issue’ section of the submitted support ticket:

    Steps To Reproduce The Issue:

    1. Come to the realisation that humans tend to communicate in languages other than English
    2. Attempt to view the date-picker in a language other than English
    3. Figure out where the language is being defined
    4. Google jquery.phpDate.min.js and enjoy disappointment
    5. Search the WordPress Forum and enjoy more disappointment
    6. Login to the Ninja Support Forum, and wonder where all the threads are
    7. Wonder if ‘Ninja’ is really the right choice to associate with your plugin.

    Facts about Ninjas:

    • Ninjas are mammals.
    • Ninjas fight ALL the time.
    • The purpose of the ninja is to flip out and kill people.
    • 忍者 prefer Japanese, if you please.

    So… changing jquery.phpDate.min.js does nothing.
    Now we open up dev/ninja-forms-display.js and add our localised goodness:

    if( jQuery.fn.datepicker ){
    			dateFormat: ninja_forms_settings.date_format,
    			closeText: 'schließen',
    			prevText: '<zurück',
    			nextText: 'Vor>',
    			currentText: 'heute',
    			monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'],
    			monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'],
    			dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
    			dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'],
    			dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'],
    			weekHeader: 'KW',
    			dateFormat: '',
    			firstDay: 1,

    then save this file in the min/folder as: ninja-forms-display.min.js

    So simple, so elegant, so exactly like a Ninja is not.

    Ninja Forms Responded:

    The date picker that we use is the one built into WordPress, we just call it and have not included anything extra in it’s use. Nothing has changed since the support thread that you saw…all localization is done in the same way. Here is some documentation to assist if needed:

    So, there’s that.

    Plugin Author James Laws


    We are sorry you are having issues and appreciate any frustration you are experiencing.

    We’ve replied to your support request from our site but so others understand how this works I will post a short response here.

    There is no such thing as a Ninja Forms date picker. Ninja Forms user the jQuery UI date picker that ships with WordPress. We alter it in no way at this time. It is fully localized by their own methods which are explained here:

    Is there room for improvement, absolutely. We would say that about many,many areas of Ninja Forms. Has there been enough requests for said improvement for us to focus on it when there is a method in place for the few have needed it.

    All that being said, we have a public roadmap where people can request features and enhancements as well as up-vote things they would like to see in the plugin. We hope this will help everyones voice get heard and remove the mystery of what or why we are or are not working on something specific at the moment.

    Plugin Author James Laws


    I also just wanted to point out that Ninja Forms is a completely free open source project and anyone can contribute on our GitHub Repo.

    If any one feels there is a better solution for how Ninja Forms is handling something they are welcome to submit a pull request to our develop branch and we will work with them to make sure it’s the best solution possible.

    Hello Baden,
    thanks for your post on ninja forms datepicker. I added code as described, but nothing changed. Any helping advice für me?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Everything Need To Know Abotu DatePicker Localisation’ is closed to new replies.