Datepicker locale problem

Datepicker locale problem


Hallo all.
I'm trying to use the datepicker localize option; I copied the example
from the tutorial as you can see below:
http://pastie.org/540162
Everything works fine in this way.
When i try to move the code in the document.ready the locale does not
work any more. It seems that it takes always the last locale
javascript referenced in the html file.
http://pastie.org/540168
So it seems that is not possible to change programmatically the
locale.
Any idea?
Kind regards
Massimo