Anyone? From my tests it seems like the order is like the order of
Accept-Language header of HTTP :
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4 I just
want to be sure I can base my detection on this.

Also, am I right to code everything from the ground to deal with i18n,
like building a JavaScript array of all my translations and load them
based on the result of chrome.i18n.getAcceptLanguages or will this
design document 
http://sites.google.com/a/chromium.org/dev/developers/design-documents/extensions/i18n
be up and running for the launch of extensions?

Or do you think I should wait? :)

--
Jeremy

On Nov 24, 1:45 am, Jeremy Selier <jerem.sel...@gmail.com> wrote:
> Hi,
>
> About the code provided here 
> :http://code.google.com/chrome/extensions/i18n.html
> function getAcceptLanguages() {
>   chrome.i18n.getAcceptLanguages(function(languageList) {
>     var languages = languageList.join(",");
>     document.getElementById("languageSpan").innerHTML = languages;
>   })
>
> }
>
> Can we suppose that the first element of the returned list will be the
> more important language? I suppose it's similar/related to the
> construction of the Accept-Language header of HTTP in some way 
> :http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4. Am I
> right?
>
> Cheers,
>
> --
> Jeremy

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to chromium-extensi...@googlegroups.com.
To unsubscribe from this group, send email to 
chromium-extensions+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to