Announcing the Ubuntu.com Website Localization Project

Eivar Montenegro Mosquera e.mont01 at gmail.com
Thu Mar 18 16:01:45 GMT 2010


Good day,

>
>> Regarding client side `HTTP_ACCEPT_LANGUAGE`:
>> try this in your browser:
>> ---
>> javascript:alert(navigator.language);
>> ---
>> worked for chromium and ff.
>>
> Do not work for ie 8, it shows a message "undefined".
>
> This script works on internet explorer 8 and firefoxf 3.6
    var userLang = (navigator.language) ? navigator.language :
navigator.userLanguage;
    alert ("The language is: " + userLang);

a reference link:
http://www.javascriptkit.com/javatutors/navigator.shtml

-- 
Eivar A. Montenegro. M.
¡El mundo es mejor cuando eres libre de elegir!
Linux user: #461766
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-translators/attachments/20100318/4f063a68/attachment-0001.htm 


More information about the ubuntu-translators mailing list