NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Robert Iliuta on April 03, 2011, 11:55:19 PM

Title: Translate the jQuery calendar
Post by: Robert Iliuta on April 03, 2011, 11:55:19 PM
Hallo,


I follow this link: http://jqueryui.com/demos/datepicker , download the js language file but don't know how to implement...

If someone already implement please post some steps.

Thank you,
Robert
Title: Re: Translate the jQuery calendar
Post by: Bruce on April 04, 2011, 12:19:50 AM
I'm not sure which file you downloaded - but you don't need to download anything.

You can set the text by setting the various datePicker options.

In your code you can set "loc:options" before any call to one of the jQuery calls. So, in your case, let's say you wanted to set the daynames, and monthNames option;

loc:options = 'dayNames: ["Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi"], '|
                    'monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun','Jul','Aug','Sep','Okt','Nov','Dec']'

and so on.

If you have the "Developing Web Applications with NetTalk" book, which I used during the web-shop, then there's more detail on this in the section "jQuery Widget Options", around page 165.

cheers
Bruce
Title: Re: Translate the jQuery calendar
Post by: Robert Iliuta on April 04, 2011, 01:42:46 AM
Thank you Bruce,

Works perfect.

Translations I got from this link: http://jquery-ui.googlecode.com/svn/trunk/ui/i18n/  it was on the bottom of the page
( http://jqueryui.com/demos/datepicker )


Regards,
Robert