On 1/13/06, Jorge Godoy <[EMAIL PROTECTED]> wrote:
> From the CalendarDatePicker class it looks like a lot of this is already done
> and I'd need just to fix the JS part:
>
> ================================================================================
> class CalendarDatePicker(Widget):
>     css=[CSSLink(static, "calendar-system.css")]
>     javascript=[JSLink(static, "calendar.js"),
>                 JSLink(static, "lang/calendar-en.js"),
>                 JSLink(static, "calendar-setup.js")]
> ================================================================================
>
> Since 'calendar-en.js' is only suitable for English and not for other
> languages...  Maybe adding a new variable to pass the language (how I still
> don't know since the names used by the calendar aren't what is sent by the
> browser or what we inform to cherrypy.session['locale']...

Ahh. You may need to override the function that produces the set of
JavaScripts for the widget.

Remember that, at least at present, widgets are stateless. It seems
like when the javascript is requested, at that point you could look up
the locale and return the appropriate language pack.

Kevin

Reply via email to