Kevin Dangoor <[EMAIL PROTECTED]> writes: > On 1/18/06, Jorge Godoy <[EMAIL PROTECTED]> wrote: >> How, then, to achieve what is shown above in a correct way? My main concern >> is with modifying things like JS and CSS, specially for I18N and custom >> layouting widgets. > > It just occurred to me that the lazygettext solution I mentioned in > the other thread may not even work.
:-( Too bad. > To make the JavaScript and CSS vary from request to request, you just > need to override retrieve_javascript and retrieve_css, as those are > called for each request. But then you have to "recreate" CSS and JS groups to replace the originals, i.e., without looking in the source code you can't change them and keep things simple. I agree that it is rare -- the only case I have in mind is for the CalendarDatePicker to pass the language of the JS to be used --, but if one has to "copy" from the source just to replace the language it is not good and becomes somewhat unfriendly to the programmer (one has to look at the source code, find out what can be removed, what has to remain there, copy, paste, change...). I still think that there should be some way to pass the information that needs to be changed without having to deal with everything. -- Jorge Godoy <[EMAIL PROTECTED]>

