Hello All,

I'm trying to have month names and short day names translated in the jQuery datepicker.

I know that the script has functions to redefine the strings, but it is not clear to me if Date Popup uses them.

So my question is : are the month and day names supposed to be translated in the datepicker ?

TIA

Comments

dropall’s picture

1 year 24 weeks later....

My problem is not solved : "my" datepicker is in English only.

Is it normal or do I have a problem in my config ?

TIA

macmaxx’s picture

Assigned: Unassigned » macmaxx

Hi DROPALL!

Here is the answer. I had the same problem! Just put the code into the node you are using the datepicker with. Just make sure the JQUERY.UI path is correct and substitue the de in the code with whatever language you wand.

<script type="text/javascript" src="/2010/sites/all/libraries/jquery.ui/ui/i18n/ui.datepicker-de.js">
<script type="text/javascript">
$(document).ready(function() {
$.datepicker.setDefaults($.datepicker.regional['']);
$('#date').datepicker($.datepicker.regional['de']);
});
</script>

Cheers!

dropall’s picture

Assigned: macmaxx » Unassigned
Status: Active » Closed (works as designed)

What a sheer coincidence !

Today, more than two years after my post, I found the answer in another thread.

I get back here to update the issue, and I find your post.

Anyway, here is the solution : datepicker uses t() so a simple visit to the "translate interface" page solves the problem.

Thank you for your help.