Load datepicker translations only if it is used.
This commit is contained in:
@@ -68,6 +68,7 @@ foreach ($js_messages as $name => $js_message) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Calendar */
|
/* Calendar */
|
||||||
|
echo "if ($.datepicker) {\n";
|
||||||
/* l10n: Display text for calendar close link */
|
/* l10n: Display text for calendar close link */
|
||||||
PMA_printJsValue("$.datepicker.regional['']['closeText']", __('Done'));
|
PMA_printJsValue("$.datepicker.regional['']['closeText']", __('Done'));
|
||||||
/* l10n: Display text for previous month link in calendar */
|
/* l10n: Display text for previous month link in calendar */
|
||||||
@@ -165,3 +166,4 @@ PMA_printJsValue("$.datepicker.regional['']['minuteText']", __('Minute'));
|
|||||||
PMA_printJsValue("$.datepicker.regional['']['secondText']", __('Second'));
|
PMA_printJsValue("$.datepicker.regional['']['secondText']", __('Second'));
|
||||||
?>
|
?>
|
||||||
$.extend($.datepicker._defaults, $.datepicker.regional['']);
|
$.extend($.datepicker._defaults, $.datepicker.regional['']);
|
||||||
|
} /* if ($.datepicker) */
|
||||||
|
Reference in New Issue
Block a user