Localizzazione italiana e configurazione FullCalendar
//################ config fullcalendar ###############
var monthNames = ['Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre'];
var monthNamesShort = ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic'];
var dayNames = ['Domenica', 'Lunedì', 'Martedì', 'Mercoledì', 'Giovedì', 'Venerdì', 'Sabato'];
var dayNamesShort = ['Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab'];
$fullCalendarOptions = {
firstDay: 1,
weekMode: 'variable',
defaultView: 'month',
editable: false,
selectable: true,
slotMinutes: 15,
aspectRatio: 2,
header: {
left: 'month,agendaWeek,agendaDay',
center: 'title',
right: 'today prev,next'
},
buttonText: {
prev: "<span class='fc-text-arrow'>‹</span>",
next: "<span class='fc-text-arrow'>›</span>",
prevYear: "<span class='fc-text-arrow'>«</span>",
nextYear: "<span class='fc-text-arrow'>»</span>",
today: 'oggi',
month: 'mese',
week: 'settimana',
day: 'giorno'
},
allDayText: '<small>tutto il giorno</small>',
titleFormat: {
month: 'MMMM yyyy',
week: "d [ yyyy]{ '—'[ MMM] d MMM yyyy}",
day: 'd MMMM yyyy'
},
columnFormat: {
month: 'ddd',
week: 'ddd d/M',
day: 'dddd d/M'
},
axisFormat: 'H:mm',
timeFormat: {
'': 'H:mm',
agenda: 'H:mm{ - H:mm}'
},
monthNames: monthNames,
monthNamesShort: monthNamesShort,
dayNames: dayNames,
dayNamesShort: dayNamesShort,
};
//Uso:
//$('[calendar selector]').fullCalendar($.extend({ [local options] }, $fullCalendarOptions));