author | Denis Laxalde <denis.laxalde@logilab.fr> |
Tue, 07 Jan 2014 09:04:23 +0100 | |
branch | stable |
changeset 9430 | fadc24618e37 |
parent 8295 | 302dcb3c6858 |
child 9417 | 60322cb8636c |
permissions | -rw-r--r-- |
8295
302dcb3c6858
[js] fix $.fullCalendar.regional call (closes #2232028)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
8287
diff
changeset
|
1 |
/* |
302dcb3c6858
[js] fix $.fullCalendar.regional call (closes #2232028)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
8287
diff
changeset
|
2 |
translations for fullCalendar plugin |
302dcb3c6858
[js] fix $.fullCalendar.regional call (closes #2232028)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
8287
diff
changeset
|
3 |
*/ |
302dcb3c6858
[js] fix $.fullCalendar.regional call (closes #2232028)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
8287
diff
changeset
|
4 |
|
302dcb3c6858
[js] fix $.fullCalendar.regional call (closes #2232028)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
8287
diff
changeset
|
5 |
$.fullCalendar.regional = function(lng, options){ |
8287
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
6 |
var defaults = {'fr' : { |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
7 |
monthNames: |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
8 |
['Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre'], |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
9 |
monthNamesShort: ['janv.','févr.','mars','avr.','mai','juin','juil.','août','sept.','oct.','nov.','déc.'], |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
10 |
dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'], |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
11 |
dayNamesShort: ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'], |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
12 |
titleFormat: { |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
13 |
month: 'MMMM yyyy', // ex : Janvier 2010 |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
14 |
week: "d[ MMMM][ yyyy]{ - d MMMM yyyy}", // ex : 10 � 16 Janvier 2010, |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
15 |
day: 'dddd d MMMM yyyy' // ex : Jeudi 14 Janvier 2010 |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
16 |
}, |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
17 |
columnFormat: {'month': 'dddd', |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
18 |
'agendaWeek': 'dddd dd/M/yyyy', |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
19 |
'agendaDay': 'dddd dd/M/yyyy'}, |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
20 |
axisFormat: 'H:mm', |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
21 |
timeFormat: { |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
22 |
'': 'H:mm', |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
23 |
agenda: 'H:mm{ - H:mm}'}, |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
24 |
allDayText: 'journée', |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
25 |
axisFormat: 'H:mm', |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
26 |
buttonText: { |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
27 |
today: "aujourd'hui", |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
28 |
month: 'mois', |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
29 |
week: 'semaine', |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
30 |
day: 'jour' |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
31 |
} |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
32 |
}}; |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
33 |
if(lng in defaults){ |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
34 |
return $.extend({}, defaults[lng], options); |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
35 |
} |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
36 |
else {return options;}; |
2d660890d3e8
[js] translate calendar in french (closes #2167866)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
diff
changeset
|
37 |
}; |
8295
302dcb3c6858
[js] fix $.fullCalendar.regional call (closes #2232028)
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
8287
diff
changeset
|
38 |
; |