hugo wrote: >>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 > >
I thought Adrian was suggesting translators would be coming up with actual different javascript functionality, depending on locale. Ie you are still talking about translating strings, which is fine, I was aiming for a use case for delivering actual different logic to different locales. The only thing I can come up with is some input method stuff, but that should probably be left to the browser....