NetTalk Central

Author Topic: Translate the jQuery calendar  (Read 3281 times)

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Translate the jQuery calendar
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11245
    • View Profile
Re: Translate the jQuery calendar
« Reply #1 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

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Re: Translate the jQuery calendar
« Reply #2 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