|
1 |
| -jQuery(function($){ |
2 |
| - // TRANSLATOR: Format in month heading in the datepicker, extracts yearSuffix |
3 |
| - // and showMonthAfterYear |
4 |
| - var formatMonth = _("$month$year"); |
5 |
| - $.datepicker.setDefaults({ |
6 |
| - // TRANSLATOR: Link that closes the datepicker |
7 |
| - closeText: _("Done"), |
8 |
| - // TRANSLATOR: Link to the previous month in the datepicker |
9 |
| - prevText: _("Prev"), |
10 |
| - // TRANSLATOR: Link to the next month in the datepicker |
11 |
| - nextText: _("Next"), |
12 |
| - // TRANSLATOR: Link to the current day in the datepicker |
13 |
| - currentText: _("Today"), |
14 |
| - monthNames: jquery_ui.month_names.wide, |
15 |
| - monthNamesShort: jquery_ui.month_names.abbreviated, |
16 |
| - dayNames: jquery_ui.day_names.wide, |
17 |
| - dayNamesShort: jquery_ui.day_names.abbreviated, |
18 |
| - dayNamesMin: jquery_ui.day_names.narrow, |
19 |
| - // TRANSLATOR: Heading for the week-of-the-year column in the datepicker |
20 |
| - weekHeader: _("Wk"), |
21 |
| - yearSuffix: $.format(formatMonth, {month: '', year: ''}), |
22 |
| - dateFormat: jquery_ui.date_format, |
23 |
| - firstDay: jquery_ui.first_week_day, |
24 |
| - isRTL: false, |
25 |
| - showMonthAfterYear: formatMonth.indexOf('$month') > |
26 |
| - formatMonth.indexOf('$year') |
27 |
| - }); |
28 |
| - $.timepicker.setDefaults({ |
29 |
| - // TRANSLATOR: Heading of the standalone timepicker |
30 |
| - timeOnlyTitle: _("Choose Time"), |
31 |
| - // TRANSLATOR: Time selector label |
32 |
| - timeText: _("Time"), |
33 |
| - // TRANSLATOR: Time labels in the timepicker |
34 |
| - hourText: _("Hour"), minuteText: _("Minute"), secondText: _("Second"), |
35 |
| - timezoneText: _("Time Zone"), |
36 |
| - // TRANSLATOR: Link to pick the current time in the timepicker |
37 |
| - currentText: _("Now"), |
38 |
| - // TRANSLATOR: Link that closes the timepicker |
39 |
| - closeText: _("Done"), |
40 |
| - timeFormat: jquery_ui.time_format, |
41 |
| - separator: jquery_ui.timepicker_separator, |
42 |
| - timezone: 'Z', |
43 |
| - showTimezone: jquery_ui.show_timezone, |
44 |
| - timezoneList: jquery_ui.timezone_list, |
45 |
| - timezoneIso8601: jquery_ui.timezone_iso8601, |
46 |
| - ampm: jquery_ui.ampm, |
47 |
| - showSecond: true |
48 |
| - }); |
49 |
| -}); |
| 1 | +jQuery(function($){ |
| 2 | + // TRANSLATOR: Format in month heading in the datepicker, extracts yearSuffix |
| 3 | + // and showMonthAfterYear |
| 4 | + var formatMonth = _("$month$year"); |
| 5 | + $.datepicker.setDefaults({ |
| 6 | + // TRANSLATOR: Link that closes the datepicker |
| 7 | + closeText: _("Done"), |
| 8 | + // TRANSLATOR: Link to the previous month in the datepicker |
| 9 | + prevText: _("Prev"), |
| 10 | + // TRANSLATOR: Link to the next month in the datepicker |
| 11 | + nextText: _("Next"), |
| 12 | + // TRANSLATOR: Link to the current day in the datepicker |
| 13 | + currentText: _("Today"), |
| 14 | + monthNames: jquery_ui.month_names.wide, |
| 15 | + monthNamesShort: jquery_ui.month_names.abbreviated, |
| 16 | + dayNames: jquery_ui.day_names.wide, |
| 17 | + dayNamesShort: jquery_ui.day_names.abbreviated, |
| 18 | + dayNamesMin: jquery_ui.day_names.narrow, |
| 19 | + // TRANSLATOR: Heading for the week-of-the-year column in the datepicker |
| 20 | + weekHeader: _("Wk"), |
| 21 | + yearSuffix: $.format(formatMonth, {month: '', year: ''}), |
| 22 | + dateFormat: jquery_ui.date_format, |
| 23 | + firstDay: jquery_ui.first_week_day, |
| 24 | + isRTL: false, |
| 25 | + showMonthAfterYear: formatMonth.indexOf('$month') > |
| 26 | + formatMonth.indexOf('$year') |
| 27 | + }); |
| 28 | + $.timepicker.setDefaults({ |
| 29 | + // TRANSLATOR: Heading of the standalone timepicker |
| 30 | + timeOnlyTitle: _("Choose Time"), |
| 31 | + // TRANSLATOR: Time selector label |
| 32 | + timeText: _("Time"), |
| 33 | + // TRANSLATOR: Time labels in the timepicker |
| 34 | + hourText: _("Hour"), minuteText: _("Minute"), secondText: _("Second"), |
| 35 | + timezoneText: _("Time Zone"), |
| 36 | + // TRANSLATOR: Link to pick the current time in the timepicker |
| 37 | + currentText: _("Now"), |
| 38 | + // TRANSLATOR: Link that closes the timepicker |
| 39 | + closeText: _("Done"), |
| 40 | + timeFormat: jquery_ui.time_format, |
| 41 | + separator: jquery_ui.timepicker_separator, |
| 42 | + timezone: 'Z', |
| 43 | + showTimezone: jquery_ui.show_timezone, |
| 44 | + timezoneList: jquery_ui.timezone_list, |
| 45 | + timezoneIso8601: jquery_ui.timezone_iso8601, |
| 46 | + ampm: jquery_ui.ampm, |
| 47 | + showSecond: true |
| 48 | + }); |
| 49 | +}); |
0 commit comments