Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Localization is not working in Jquery date picker

I have calendar functionality in my application.I am referring from http://jqueryui.com/datepicker/. I had seen the "Localize Calendar" example in that web page.But there itself localization is not working.Is it bug or anything i need to do extra.

My Code

$(function () {
    $.datepicker.setDefaults( $.datepicker.regional[ "fr" ] );

        $("#w_datePicker").datepicker({
            showOn: "button",
            buttonImage: "style/images/calendar.gif",
            buttonImageOnly: true,
            altField: '#show_date_on_select',
            altFormat: 'DD, MM d',
            //dateFormat: 'DD, MM d',
            onSelect: function (dateText, inst) {
                //var selDate = FormatDate(dateText);
                //$("#show_date_on_select").html(selDate);
            }
        });

});
like image 287
sathishkumar Avatar asked Dec 20 '22 10:12

sathishkumar


1 Answers

i guess you need to have a language file for your selected language as well. From here: Datepicker Language File

like image 102
Sudhir Bastakoti Avatar answered Dec 26 '22 20:12

Sudhir Bastakoti