dubrox / Multiple-Dates-Picker-for-jQuery-UI

MDP is a little plugin that enables jQuery UI calendar to manage multiple dates.
https://dubrox.github.io/Multiple-Dates-Picker-for-jQuery-UI
273 stars 159 forks source link

Does it support localization like the original jQuery UI DatePicker? #176

Open simobgl opened 8 years ago

simobgl commented 8 years ago

I localize my vanilla DatePicker as in http://stackoverflow.com/questions/494958/how-do-i-localize-the-jquery-ui-datepicker. Can I do the same with Multiple-Dates-Picker-for-jQuery-UI? BTW... very nice work.

ghost commented 8 years ago

Yes you can localize MultiDatePicker. I localize it to French

  1. Download your localization file : https://github.com/jquery/jquery-ui/tree/master/ui/i18n
  2. Insert this file on your view after the multidatepicker like this :
<script type="text/javascript" src="scripts/jquery-ui.multidatespicker.js"></script>
<script type="text/javascript" src="scripts/datepicker-fr.js"></script>

capture

Care, this is not working on full-year calendar for me at the moment.

simobgl commented 8 years ago

Hi, it works perfectly in my implementation.

Many thanks for this wonderful addon.

Simone Baglioni

thibault fouillat mailto:notifications@github.com 12 maggio 2016 11:02

Yes you can localize MultiDatePicker. I localize it to French

  1. Download your localization file : https://github.com/jquery/jquery-ui/tree/master/ui/i18n
  2. Insert this file on your view after the multidatepicker like this :

|<script type="text/javascript" src="scripts/jquery-ui.multidatespicker.js">

| capture https://cloud.githubusercontent.com/assets/5212439/15209355/e021a9f6-1830-11e6-9ab9-d410abe62a6b.PNG Care, this is not working on full-year calendar for me at the moment. — You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/dubrox/Multiple-Dates-Picker-for-jQuery-UI/issues/176#issuecomment-218699931
simobgl commented 8 years ago

Which method do you use to serialize/deserialize the addDates field? .val() returns a string, addDates takes an array. Best Regards,

Simone B.

thibault fouillat mailto:notifications@github.com 12 maggio 2016 11:02

Yes you can localize MultiDatePicker. I localize it to French

  1. Download your localization file : https://github.com/jquery/jquery-ui/tree/master/ui/i18n
  2. Insert this file on your view after the multidatepicker like this :

|<script type="text/javascript" src="scripts/jquery-ui.multidatespicker.js">

| capture https://cloud.githubusercontent.com/assets/5212439/15209355/e021a9f6-1830-11e6-9ab9-d410abe62a6b.PNG Care, this is not working on full-year calendar for me at the moment. — You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/dubrox/Multiple-Dates-Picker-for-jQuery-UI/issues/176#issuecomment-218699931
ghost commented 8 years ago

You simply need to put your string value / values into an array and use addDates: yourArray.

In the addDates you can use multiple array like this : addDates: [array1, array2], it's working for me.

PS: sorry for late, can't connect before :(