>I much prefer this idea to the proposals involving XMLHttpRequest. We
>can include the language definitions dictionary file with code like
>this:

Had a look at my posting with the sample implementation? It's exactly
that what I do - delivering a dictionary with a few helper (that
surprisingly look like gettext) functions. XHR was my first idea to
deliver the lib, but I think this way is much more stable over
different browsers.

Only difference is, I would create the library dynamically, so that in
the background we could use the same management tools that are already
used for language handling (make-messages.py, compile-messages.py). The
po/mo files are only used to store the translations, though, as JS
won't see them - it will see just a big, fat assotiatvie array.

bye, Georg

Reply via email to