Like you, my plan is to use an server side script and mimeparse
(http://code.google.com/p/mimeparse/) for choose the best language.
>
> It would be a good idea to vote for or make some new report on the major
> browsers bugtrackers about this issue. Anyone has those url (bugzilla is
> easy to find, but others ?)
See http://ejohn.org/blog/a-web-developers-responsibility/
I will take a look this evening.
>
> Moreover, our API should able to force the current language (for example
> using small flags links in the page), and the language should remain
> next time. That means probably cookie, or browser storing (through
> embedded database if available ?)
>
> Any idea is welcome about i18n and l10n because there is almost nothing
> in js currently. The simplest way to deal with it in js is just using
> apache multiview by default on the js translation files: in my browser,
> toto.fr_fr.js would be read before toto.fr.js, toto.en.js and toto.js if
> I request toto.js. Using this we can get also directly toto.en-US.js if
> we want.
>
> This is not a bad solution, however this will lead to problems when not
> using apache httpd server :(
>
I prepare an i18n enhancement. I will push when it's almost done.
> So I'll merge your patch but we have to do it go further !!! :)
>
>
> For the second patch, we have to deal with a very annoying bug in IE :
> defining a script charset different from the page one is just ignored by
> IE, and this can even lead to a browser crash ! We have seen it several
> time when making UTF-8 pages and using the default iso8859-1 on js
> scripts :-/
>
> I've seen you've just added a configuration in order to define it in the
> conf whether hardcoded. I think we should just remove this parameter and
> explain why in the documentation or FAQ.
>
> What do you think of that ? giving the ability to configure something
> that is unusable if plan to support IE in the webapp, or not ?
>
> I don't remember if this bug affects IE7 (or above), anyone knows ?
Ok, my bad. I reproduce this bug with IE6.
>
> Cheers,
> Florian