Re: [web2py] Re: Calender / datetime picker - localization

2011-08-23 Thread Martin Weissenboeck
Hi Ray, yes, I have read it. My problem is to change the language on the fly, depending on the language the visitor excepts. Regards, Martin 2011/8/22 Iceberg iceb...@21cn.com Hi Martin, About the translation, have you checked out its official package?

Re: [web2py] Re: Calender / datetime picker - localization

2011-08-23 Thread Martin Weissenboeck
Ok, this is the documentation I have been looking for. Now I have found the direct link on the website. Thanks again. The timepicker seems not be very useful for me because I could not find a way to change it from AM/PM to 24 hours 2011/8/17 Anthony abasta...@gmail.com Here's the documentation

[web2py] Re: Calender / datetime picker - localization

2011-08-23 Thread Ray (a.k.a. Iceberg)
Then I think you need a dynamic include in your controller. Something like this: def index(): return {'foo': DIV( SCRIPT(_src=URL(..., 'calendar-%s-utf8.js'%language)), DIV(...all_cool_stuff...), )} Regards, Ray On Aug 24, 4:54 am, Martin Weissenboeck

[web2py] Re: Calender / datetime picker - localization

2011-08-21 Thread Iceberg
Hi Martin, About the translation, have you checked out its official package? http://www.dynarch.com/projects/calendar/old/ It contains lots of different language files. Just include one of them, and you are good to go. It works for me, for years! Regards, Ray (a.k.a. Iceberg) On Aug 17, 10:24 

[web2py] Re: Calender / datetime picker - localization

2011-08-17 Thread Anthony
If you want to localize the date format in particular, in /views/web2py_ajax.html, you'll notice variables w2p_ajax_date_format and w2p_ajax_datetime_format. Both of those are translated via the web2py translation system, so you can simply add translations for those two formats to your

Re: [web2py] Re: Calender / datetime picker - localization

2011-08-17 Thread Martin Weissenboeck
Thx. But how can I translate the names of the months and the days and how can I make the calendar start at Monday (and not at Sunday)? By the way: I wanted to get a timepicker and I have tried to use ... _class='time' The datepicker works (_class='date') and also _class='datetime', but not

Re: [web2py] Re: Calender / datetime picker - localization

2011-08-17 Thread Anthony
Here's the documentation on the JS widget: http://www.dynarch.com/static/jscalendar-1.0/doc/html/reference.html. Note, attaching the Calendar widget to date and datetime fields is handled in the web2py_ajax_init function of /static/js/web2py_ajax.js (