web/data/fullcalendar.locale.js
changeset 11057 0b59724cb3f2
parent 11052 058bb3dc685f
child 11058 23eb30449fe5
equal deleted inserted replaced
11052:058bb3dc685f 11057:0b59724cb3f2
     1 /*
       
     2  translations for fullCalendar plugin
       
     3  */
       
     4 
       
     5 $.fullCalendar.regional = function(lng, options){
       
     6     var defaults = {'fr' : {
       
     7      monthNames:
       
     8        ['Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre'],
       
     9      monthNamesShort: ['janv.','févr.','mars','avr.','mai','juin','juil.','août','sept.','oct.','nov.','déc.'],
       
    10      dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],
       
    11      dayNamesShort: ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'],
       
    12      titleFormat: {
       
    13  	month: 'MMMM yyyy', // ex : Janvier 2010
       
    14  	week: "d[ MMMM][ yyyy]{ - d MMMM yyyy}", // ex : 10 — 16 Janvier 2010,
       
    15  	day: 'dddd d MMMM yyyy' // ex : Jeudi 14 Janvier 2010
       
    16      },
       
    17      columnFormat: {'month': 'dddd',
       
    18                   'agendaWeek': 'dddd dd/M/yyyy',
       
    19                   'agendaDay': 'dddd dd/M/yyyy'},
       
    20      axisFormat: 'H:mm',
       
    21      timeFormat: {
       
    22 	'': 'H:mm',
       
    23 	agenda: 'H:mm{ - H:mm}'},
       
    24      allDayText: 'journée',
       
    25      axisFormat: 'H:mm',
       
    26      buttonText: {
       
    27         today: "aujourd'hui",
       
    28         month: 'mois',
       
    29         week: 'semaine',
       
    30        day: 'jour'
       
    31      }
       
    32   }};
       
    33   if(lng in defaults){
       
    34     return $.extend({}, defaults[lng], options);
       
    35    }
       
    36    else {return options;};
       
    37   };
       
    38 ;