From 9bb46c6fb5439c047f0de238c00ea196063ceaf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 10 May 2010 16:46:53 +0200 Subject: [PATCH] Load datepicker translations only if it is used. --- js/messages.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/messages.php b/js/messages.php index c704c4428..30969d636 100644 --- a/js/messages.php +++ b/js/messages.php @@ -68,6 +68,7 @@ foreach ($js_messages as $name => $js_message) { } /* Calendar */ +echo "if ($.datepicker) {\n"; /* l10n: Display text for calendar close link */ PMA_printJsValue("$.datepicker.regional['']['closeText']", __('Done')); /* 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')); ?> $.extend($.datepicker._defaults, $.datepicker.regional['']); +} /* if ($.datepicker) */