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