>I'd love to see a use case for different styles and javascript according > to language. Of course it could already be done with :
Easy: I have AJAX stuff that doesn't pull HTML from the server and just uses innerHTML, but just pulls JSON encoded flags and builds the whole HTML clientside. That javascript would require translations - of course I can change it by not only providing the flags, but providing the labels, too, so I can avoid clientsite translation needs, but with bigger and more complex stuff done in JavaScript you sooner or later will end up with string constants in your javascript. In those cases I think there just is no way around providing that javascript code by a Django view function that just uses standard Django templating to produce the actual javascript delivered to the browser. bye, Georg
