On 11/28/05 18:25, hugo wrote:
My first instinct in this sort of case is to find out what others are doing,
i.e. Dojo folks, RoR, TG, etc.
That's what I did. Zilch. Nada. Zero. Nothing. Seems nobody ever cared
about a proper solution to JavaScript and i18n. What they do are hacks,
if they do something at all. Some of those hacks sound like the
possible solutions I listed - that's where I got them from ;-)
bye, Georg
Xinha (ex HTMLArea) uses a variant of 4). Altough without pluralization
and all.
http://xinha.python-hosting.com/file/trunk/htmlarea.js
HTMLArea._loadlang = function(context) ...
HTMLArea._lc = function(string, context, replace) ...
The code is rather ugly and I'm not sure their approach is "the right
way". But maybe thats a starting point?
cheers
Steven