-
Notifications
You must be signed in to change notification settings - Fork 1
/
ext.ux.datepickerplus-lang-nl.js
95 lines (91 loc) · 3.45 KB
/
ext.ux.datepickerplus-lang-nl.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*
* Ext.ux.DatePickerPlus Addon
* Ext.ux.form.DateFieldPlus Addon
*
* @author Marco Wienkoop (wm003/lubber)
* @copyright (c) 2008, Marco Wienkoop ([email protected]) http://www.lubber.de
*
* translation by (walldorff )
*/
// Be sure to include this AFTER the datepickerwidget in your html-files
//Use this as a start to create you own language-file.
//Post it to the ext-forum, if you are done! :)
if(Ext.ux.DatePickerPlus){
Ext.apply(Ext.ux.DatePickerPlus.prototype, {
weekName : "Wk.",
selectWeekText : "Klik om alle dagen van deze week te selecteren",
selectMonthText : "Klik om alle weken van deze maand te selecteren",
maxSelectionDaysTitle: 'Datumprikker',
maxSelectionDaysText: 'De selectie kan maximum %0 dagen bevatten',
undoText: "Herstel", // "Undo" in Dutch is really "Ongedaan maken" but that text is too long to fit the button
displayMaskText: 'Een ogenblik...',
nextYearText: "Volgend jaar (Control+Up)",
prevYearText: "Vorig jaar (Control+Down)",
nationalHolidays: function(year) {
year = (typeof year === "undefined" ? (this.lastRenderedYear ? this.lastRenderedYear : new Date().getFullYear()) : parseInt(year,10));
//per default the DUTCH national holidays are calculated (according to http://nl.wikipedia.org/wiki/Feest-_en_gedenkdagen)
//remember to include the locale file _AFTER_ datepickerplus !
var dayOfMay01 = new Date(year,4,1).getDay();
var dayOfJun01 = new Date(year,5,1).getDay();
var dayOfSep01 = new Date(year,8,1).getDay();
var holidays =
[{
text: "Nieuwjaar",
date: new Date(year,0,1)
},
{
text: "Valentijnsdag",// every February 14
date: new Date(year,1,14)
},
{
text: "Koninginnedag", // every April 30
date: new Date(year,3,30)
},
{
text: "Dag van de arbeid",// every May 1
date: new Date(year,4,1)
},
{
text: "Nationale Dodenherdenking",// every May 4
date: new Date(year,4,4)
},
{
text: "Bevrijdingsdag",// every May 5
date: new Date(year,4,5)
},
{
text: "Moederdag",//(every second Sunday in May)
date: new Date(year,4,(dayOfMay01>0?8+7-dayOfMay01:8))
},
{
text: "Vaderdag",//(every third Sunday in June)
date: new Date(year,5,(dayOfJun01>0?15+7-dayOfJun01:15))
},
{
text: "Prinsjesdag",//(every third Tuesday in September)
date: new Date(year,8,(dayOfSep01>2?17+7-dayOfSep01:17-dayOfSep01))
},
{
text: "Sinterklaas", // every October 4
date: new Date(year,9,4)
},
{
text: "Dierendag", // every December 5
date: new Date(year,11,5)
},
{
text: "Eerste Kerstdag",
date: new Date(year,11,25)
},
{
text: "Tweede Kerstdag",
date: new Date(year,11,26)
},
{
text: "Oudejaar",
date: new Date(year,11,31)
}];
return holidays;
}
});
}