diff options
Diffstat (limited to 'js/src/datetimepicker.js')
-rw-r--r-- | js/src/datetimepicker.js | 112 |
1 files changed, 56 insertions, 56 deletions
diff --git a/js/src/datetimepicker.js b/js/src/datetimepicker.js index 8257976b38..f444f26878 100644 --- a/js/src/datetimepicker.js +++ b/js/src/datetimepicker.js @@ -5,68 +5,68 @@ function registerDatePickerTranslations () { return; } - $.datepicker.regional[''].closeText = Messages.strCalendarClose; - $.datepicker.regional[''].prevText = Messages.strCalendarPrevious; - $.datepicker.regional[''].nextText = Messages.strCalendarNext; - $.datepicker.regional[''].currentText = Messages.strCalendarCurrent; + $.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 = [ - Messages.strMonthNameJan, - Messages.strMonthNameFeb, - Messages.strMonthNameMar, - Messages.strMonthNameApr, - Messages.strMonthNameMay, - Messages.strMonthNameJun, - Messages.strMonthNameJul, - Messages.strMonthNameAug, - Messages.strMonthNameSep, - Messages.strMonthNameOct, - Messages.strMonthNameNov, - Messages.strMonthNameDec, + 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 = [ - Messages.strMonthNameJanShort, - Messages.strMonthNameFebShort, - Messages.strMonthNameMarShort, - Messages.strMonthNameAprShort, - Messages.strMonthNameMayShort, - Messages.strMonthNameJunShort, - Messages.strMonthNameJulShort, - Messages.strMonthNameAugShort, - Messages.strMonthNameSepShort, - Messages.strMonthNameOctShort, - Messages.strMonthNameNovShort, - Messages.strMonthNameDecShort, + 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 = [ - Messages.strDayNameSun, - Messages.strDayNameMon, - Messages.strDayNameTue, - Messages.strDayNameWed, - Messages.strDayNameThu, - Messages.strDayNameFri, - Messages.strDayNameSat, + window.Messages.strDayNameSun, + window.Messages.strDayNameMon, + window.Messages.strDayNameTue, + window.Messages.strDayNameWed, + window.Messages.strDayNameThu, + window.Messages.strDayNameFri, + window.Messages.strDayNameSat, ]; $.datepicker.regional[''].dayNamesShort = [ - Messages.strDayNameSunShort, - Messages.strDayNameMonShort, - Messages.strDayNameTueShort, - Messages.strDayNameWedShort, - Messages.strDayNameThuShort, - Messages.strDayNameFriShort, - Messages.strDayNameSatShort, + window.Messages.strDayNameSunShort, + window.Messages.strDayNameMonShort, + window.Messages.strDayNameTueShort, + window.Messages.strDayNameWedShort, + window.Messages.strDayNameThuShort, + window.Messages.strDayNameFriShort, + window.Messages.strDayNameSatShort, ]; $.datepicker.regional[''].dayNamesMin = [ - Messages.strDayNameSunMin, - Messages.strDayNameMonMin, - Messages.strDayNameTueMin, - Messages.strDayNameWedMin, - Messages.strDayNameThuMin, - Messages.strDayNameFriMin, - Messages.strDayNameSatMin, + window.Messages.strDayNameSunMin, + window.Messages.strDayNameMonMin, + window.Messages.strDayNameTueMin, + window.Messages.strDayNameWedMin, + window.Messages.strDayNameThuMin, + window.Messages.strDayNameFriMin, + window.Messages.strDayNameSatMin, ]; - $.datepicker.regional[''].weekHeader = Messages.strWeekHeader; - $.datepicker.regional[''].showMonthAfterYear = Messages.strMonthAfterYear === 'calendar-year-month'; - $.datepicker.regional[''].yearSuffix = Messages.strYearSuffix !== 'none' ? Messages.strYearSuffix : ''; + $.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['']); @@ -79,10 +79,10 @@ function registerTimePickerTranslations () { return; } - $.timepicker.regional[''].timeText = Messages.strCalendarTime; - $.timepicker.regional[''].hourText = Messages.strCalendarHour; - $.timepicker.regional[''].minuteText = Messages.strCalendarMinute; - $.timepicker.regional[''].secondText = Messages.strCalendarSecond; + $.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['']); |