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
|
function registerDatePickerTranslations () {
'use strict';
if (! $.datepicker) {
return;
}
$.datepicker.regional[''].closeText = window.Messages.strCalendarClose;
$.datepicker.regional[''].prevText = window.Messages.strCalendarPrevious;
$.datepicker.regional[''].nextText = window.Messages.strCalendarNext;
$.datepicker.regional[''].currentText = window.Messages.strCalendarCurrent;
$.datepicker.regional[''].monthNames = [
window.Messages.strMonthNameJan,
window.Messages.strMonthNameFeb,
window.Messages.strMonthNameMar,
window.Messages.strMonthNameApr,
window.Messages.strMonthNameMay,
window.Messages.strMonthNameJun,
window.Messages.strMonthNameJul,
window.Messages.strMonthNameAug,
window.Messages.strMonthNameSep,
window.Messages.strMonthNameOct,
window.Messages.strMonthNameNov,
window.Messages.strMonthNameDec,
];
$.datepicker.regional[''].monthNamesShort = [
window.Messages.strMonthNameJanShort,
window.Messages.strMonthNameFebShort,
window.Messages.strMonthNameMarShort,
window.Messages.strMonthNameAprShort,
window.Messages.strMonthNameMayShort,
window.Messages.strMonthNameJunShort,
window.Messages.strMonthNameJulShort,
window.Messages.strMonthNameAugShort,
window.Messages.strMonthNameSepShort,
window.Messages.strMonthNameOctShort,
window.Messages.strMonthNameNovShort,
window.Messages.strMonthNameDecShort,
];
$.datepicker.regional[''].dayNames = [
window.Messages.strDayNameSun,
window.Messages.strDayNameMon,
window.Messages.strDayNameTue,
window.Messages.strDayNameWed,
window.Messages.strDayNameThu,
window.Messages.strDayNameFri,
window.Messages.strDayNameSat,
];
$.datepicker.regional[''].dayNamesShort = [
window.Messages.strDayNameSunShort,
window.Messages.strDayNameMonShort,
window.Messages.strDayNameTueShort,
window.Messages.strDayNameWedShort,
window.Messages.strDayNameThuShort,
window.Messages.strDayNameFriShort,
window.Messages.strDayNameSatShort,
];
$.datepicker.regional[''].dayNamesMin = [
window.Messages.strDayNameSunMin,
window.Messages.strDayNameMonMin,
window.Messages.strDayNameTueMin,
window.Messages.strDayNameWedMin,
window.Messages.strDayNameThuMin,
window.Messages.strDayNameFriMin,
window.Messages.strDayNameSatMin,
];
$.datepicker.regional[''].weekHeader = window.Messages.strWeekHeader;
$.datepicker.regional[''].showMonthAfterYear = window.Messages.strMonthAfterYear === 'calendar-year-month';
$.datepicker.regional[''].yearSuffix = window.Messages.strYearSuffix !== 'none' ? window.Messages.strYearSuffix : '';
// eslint-disable-next-line no-underscore-dangle
$.extend($.datepicker._defaults, $.datepicker.regional['']);
}
function registerTimePickerTranslations () {
'use strict';
if (! $.timepicker) {
return;
}
$.timepicker.regional[''].timeText = window.Messages.strCalendarTime;
$.timepicker.regional[''].hourText = window.Messages.strCalendarHour;
$.timepicker.regional[''].minuteText = window.Messages.strCalendarMinute;
$.timepicker.regional[''].secondText = window.Messages.strCalendarSecond;
// eslint-disable-next-line no-underscore-dangle
$.extend($.timepicker._defaults, $.timepicker.regional['']);
}
registerDatePickerTranslations();
registerTimePickerTranslations();
|