Hi Jul, The jQuery UI documentation at http://jqueryui.com/demos/datepicker/#localization says that the regional settings are loaded after the main datepicker code. The only way I could get it to work was by manually inserting the datepicker regional settings into my own javascript source file as follows:
// Datepicker jQuery(function($){ $.datepicker.regional['fr'] = { closeText: 'Fermer', prevText: '<Préc', nextText: 'Suiv>', currentText: 'Courant', monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin', 'Juillet','Août','Septembre','Octobre','Novembre','Décembre'], monthNamesShort: ['Jan','Fév','Mar','Avr','Mai','Jun', 'Jul','Aoû','Sep','Oct','Nov','Déc'], dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'], dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'], dayNamesMin: ['Di','Lu','Ma','Me','Je','Ve','Sa'], weekHeader: 'Sm', dateFormat: 'dd/mm/yy', firstDay: 1, isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; $.datepicker.setDefaults($.datepicker.regional['fr']); }); $(function() { $("#datepicker").datepicker({ showAnim: 'fadeIn', changeMonth: true, changeYear: true, showOn: 'both', buttonImage: 'calendar.jpg', buttonImageOnly: true, duration: 'fast', yearRange: '1930:2030' }); }); Give that a try. Seems to work fine for me. Cheers! On May 14, 9:50 am, jul <juj...@gmail.com> wrote: > Hi, > > I'm using datepicker and can't find how to set the language to french. > I do the following: > > <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ > libs/jquery/1.4/jquery.min.js"></script> > <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ > libs/jqueryui/1.8.1/jquery-ui.min.js"></script> > <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/ > jqueryui/1.8.1/themes/base/jquery-ui.css" type="text/css" /> > > <script type="text/javascript"> > $(function() { > $.datepicker.setDefaults($.datepicker.regional['fr']); > $("#id_date1").datepicker(); > }); > </script> > > But the datepicker is still in english. > Anybody can help? > > thanks > Jul > > -- > You received this message because you are subscribed to the Google Groups > "jQuery UI" group. > To post to this group, send email to jquery...@googlegroups.com. > To unsubscribe from this group, send email to > jquery-ui+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/jquery-ui?hl=en. -- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.