How to get calendars in french ?

How to get calendars in french ?

Hello
I 'd like to get my calendars in french so, I add a first function in my code but it doesn't work.
Can you tell me what I did wrong ?
Thanks

  1. <script type="text/javascript">
  2. $(function() {
  3.        $.datepicker.setDefaults($.datepicker.regional['fr']);
  4.        $('#datepicker').datepicker({showWeeks: true});
  5. });

  6. $(function(){
  7. $( "#from" ).datepicker({
  8. //defaultDate: "+1w",
  9. changeMonth: true,
  10. numberOfMonths: 1,
  11. dateFormat: 'dd-mm-yy',
  12. onSelect: function() {
  13. var date = $(this).datepicker('getDate');
  14. if (date){
  15. date.setDate(date.getDate() + 1); // le jours suivant
  16. $( "#to" ).datepicker( "option", "minDate", date ); // place la date minimum de l'autre champ
  17. }
  18. }
  19. });
  20. $( "#to" ).datepicker({
  21. //defaultDate: "+1w",
  22. changeMonth: true,
  23. numberOfMonths: 1,
  24. dateFormat: 'dd-mm-yy',
  25. onSelect: function() {
  26. var date = $(this).datepicker('getDate');
  27. if (date) {
  28. date.setDate(date.getDate() - 1); // le jour d'avant
  29. $( "#from" ).datepicker( "option", "maxDate", date );
  30. }
  31. }
  32. });
  33. })
</script>

Thanks