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 wrote:
> Hi Ray
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
> Here's the documentation on the JS widget:
>
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
> Hi Martin,
>
> About the translation, have you checked out its official package?
> http://www.dynarch.com/projects/calendar/old/
>
>
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
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 (
http://code.google.com/p/web2py/source/brow
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 '
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 language
7 matches
Mail list logo