>Another idea would be to translate the strings in the templates and
>pass the translated strings to the JavaScript. This would make the
>JavaScript not as "unobtrusive," but it's a compromise.

But with dynamically generated content it will be rather weird - your
code will be sprinkled with string parameters. And just thinking about
the weird ways to pass on those strings to the right inner function if
you have functions calling other functions ...

Oh, and it won't get you proper pluralization, too - except not if you
already know the number involved. Think about AJAX. Sure, AJAX could be
done with assignement to .innerHTML (and so strings could be translated
on the server already), but that will break with XHTML ...

bye, Georg

Reply via email to