Multiple-Dates-Picker-for-jQuery-UI icon indicating copy to clipboard operation
Multiple-Dates-Picker-for-jQuery-UI copied to clipboard

Does it support localization like the original jQuery UI DatePicker?

Open simobgl opened this issue 9 years ago • 4 comments
trafficstars

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.

simobgl avatar May 11 '16 20:05 simobgl

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.

ghost avatar May 12 '16 09:05 ghost

Hi, it works perfectly in my implementation.

Many thanks for this wonderful addon.

Simone Baglioni

thibault fouillat mailto:[email protected] 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 :

|

|

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 avatar May 13 '16 11:05 simobgl

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:[email protected] 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 :

|

|

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 avatar May 13 '16 11:05 simobgl

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 :(

ghost avatar Jun 21 '16 08:06 ghost