This is a message.

Localizing the Dateinput (french)

Une vente solidaire est organisée pour leur venir en aide. A random copy-paste from the web. Anyway here is the mandatory French localization.

standalone demo

$.tools.dateinput.localize

The localization is done with $.tools.dateinput.localize before the dateinput initialization as follows:

// the french localization
$.tools.dateinput.localize("fr", {
months: 'janvier,février,mars,avril,mai,juin,juillet,' +
'août,septembre,octobre,novembre,décembre',
shortMonths: 'jan,fév,mar,avr,mai,jun,jul,' +
'aoû,sep,oct,nov,déc',
days: 'dimanche,lundi,mardi,mercredi,jeudi,vendredi,samedi',
shortDays: 'dim,lun,mar,mer,jeu,ven,sam'
});

JavaScript

For maximum safety we suggest that you encode special characters with the corresponding HTML entities. There are many lists on the web. I used this one.

Using the new language

You'll use the lang option for dateinput to enable the new language. Note that this value can be dynamically set depending on the user's location on the globe.

// dateinput initialization. the language is specified with lang- option
$(":date").dateinput({
lang: 'fr',
format: 'dddd dd, mmmm yyyy',
offset: [30, 0]
});

JavaScript