Forums

language date time picker

amanda1987 08 Jul, 2009
Hi,

First of all; I'm really pleased with chronoforms!!

I'm using the dateTimePicker for the first time and I was wondering if I could change the english text that is used. (like July, August and the day-letters, M, T, W etc.)

Amanda
GreyHead 08 Jul, 2009
Hi Amanda,

The documentation for the date-picker is here it says that you can add 'days' and 'months' parameters to set the names.

How to set them is in this post.

Bob
amanda1987 08 Jul, 2009
Thank you!

Found the javascript file in which the days and months are specified and changed it.
GreyHead 08 Jul, 2009
Hi Amanda,

Great.

After I posted my reply I installed the latest release and noticed that there is now an input box for DateTime picker parameters at the bottom of the General tab.

Bob
amanda1987 08 Jul, 2009
Oh I see! That's handy.

But it doesn't change the language of the months in de datePicker pop-up. So changing the .js file was necessary anyway.
GreyHead 31 Jul, 2009
Hi Amanda,

Well it does if you use the right syntax. Here's an entry for a Dutch date-picker that only allows dates in the past
classes: ['dashboard'], direction: -.5, months: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december' ], days: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag']

Bob
This topic is locked and no more replies can be posted.