Status: Unconfirmed Owner: ---- Labels: OS-Mac Area-Misc Pri-2 Type-Bug New issue 20071 by bed...@technicalpursuit.com: navigator.language returns locale code, not language code http://code.google.com/p/chromium/issues/detail?id=20071
Chrome Version : 4.0.202.0 URLs (if applicable) : OS version : 10.5.8 Behavior in Safari 3.x/4.x (if applicable): Correct Behavior in Firefox 3.x (if applicable): Correct Behavior in Chrome for Windows: Untested What steps will reproduce the problem? 1. alert() or print the 'navigator.language' value 2. 3. What is the expected result? The language code to be printed: en-us or en-US (note the dash) What happens instead? The locale code is printed: en_US (note the underscore) As the following documentation states, usage of the underscore ('_') is for 'locale's, not 'language's: http://developer.apple.com/documentation/MacOSX/Conceptual/BPInternational/Articles/LanguageDe signations.html The other browsers listed above (FF 3.5, Safari 4) report 'en-us' or 'en-US' as the value for 'navigator.language', but Chrome reports 'en_US'. Cheers, - Bill -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ Automated mail from issue updates at http://crbug.com/ Subscription options: http://groups.google.com/group/chromium-bugs -~----------~----~----~----~------~----~------~--~---