4 * Attaches language support to the jQuery UI datepicker component.
6 Drupal
.behaviors
.localeDatepicker
= {
7 attach: function(context
, settings
) {
8 // This code accesses Drupal.settings and localized strings via Drupal.t().
9 // So this code should run after these are initialized. By placing it in an
10 // attach behavior this is assured.
11 $.datepicker
.regional
['drupal-locale'] = $.extend({
12 closeText
: Drupal
.t('Done'),
13 prevText
: Drupal
.t('Prev'),
14 nextText
: Drupal
.t('Next'),
15 currentText
: Drupal
.t('Today'),
25 Drupal
.t('September'),
48 Drupal
.t('Wednesday'),
71 dateFormat
: Drupal
.t('mm/dd/yy'),
74 }, Drupal
.settings
.jquery
.ui
.datepicker
);
75 $.datepicker
.setDefaults($.datepicker
.regional
['drupal-locale']);