On 28 Nov 2005, at 19:48, Eugene Lazutkin wrote:
Typical way to do it in js is to provide a language file separately
from the
code. The language file in most cases defines a single dictionary
object.
The code doesn't use text directly but uses a dictionary to fetch
proper
strings. Such dictionary is prepared offline.
I much prefer this idea to the proposals involving XMLHttpRequest. We
can include the language definitions dictionary file with code like
this:
<script src="/javascript/lang.de.js" type="text/javascript"></script>