Date field localization

Support General Date field localization

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #6502
    ludovic.meyerludovic.meyer
    Participant

    Hello,

    The date field is in english and a didn't find a way to translate it.
    Can you tell me the right way to do ?

    Regards,

    #6509
    Truong GiangTruong Giang
    Participant

    Hi,

    Date format can be changed by adding dateFormat to js_options array (See here). You can create a function to check the language of website then return the date format.

    #6516
    ludovic.meyerludovic.meyer
    Participant

    Hi,

    I already used dateFormat option.
    I want to localize everything in the js calendar (pointed in red in the image below)

    http://imgur.com/a/ps8cv

    Regards

    #6535
    Truong GiangTruong Giang
    Participant

    Hi,

    The language of date picker calendar is based on the language of your website in Settings > General > Site Language.

    Thank you.

    #6542
    ludovic.meyerludovic.meyer
    Participant

    Hello,

    The website is already in French in Settings > General > Site Language.

    I checked and i can say that the localization does not work with MB Frontend Submission (it works only in admin).

    Can you fix it please ?

    Regards,

    #6558
    Truong GiangTruong Giang
    Participant

    Hi,

    Sorry, I found the problem. The function wp_localize_jquery_ui_datepicker() has not been called when jquery-ui-datepicker is enqueued. Please update MB Frontend Submission to the latest version.

    Thank you.

    #6601
    ludovic.meyerludovic.meyer
    Participant

    It works now

    Awesome support !

    Thank you !!!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Date field localization’ is closed to new replies.