VERIFIED FIXED 14549
Locale Language in JavaScript is wrong. But in the User-Agent ok.
https://bugs.webkit.org/show_bug.cgi?id=14549
Summary Locale Language in JavaScript is wrong. But in the User-Agent ok.
Alexander Luck
Reported 2007-07-07 05:54:28 PDT
In the control panel is set my Language Deutsch(Germany). If i surf to http://developer.apple.com/internet/safari/faq.html#anchor1 and click "Show your language" then show Safari me in the popup "en". That's false. If i surf to http://www.ueber-mich.com/ then show in user-agent: Herkunft: Land: GERMANY (DE) Stadt: (Unknown city) User-Agent, Browserkennung: Mozilla/5.0 (Windows; U; Windows NT 5.1; de) AppleWebKit/522.4.1+ (KHTML, like Gecko) Version/3.0.2 Safari/522.13.1 That's is ok. Also language in JS und User-Agent are not equal!
Attachments
Alexey Proskuryakov
Comment 1 2007-07-07 10:16:41 PDT
Confirmed with r23677. Works fine on the Mac.
Alexander Luck
Comment 2 2007-07-07 10:34:16 PDT
Test also with r23677 on Windows XP: not equal -> false
Sam Weinig
Comment 3 2007-07-07 12:56:09 PDT
This is because the defaultLanguage() function has not been implemented for windows yet (it is stubbed out in TemporaryLinkStubs.cpp). This should be a relatively easy fix.
Alexey Proskuryakov
Comment 4 2007-08-14 21:38:08 PDT
Fixed in r25088 (please verify).
Alexander Luck
Comment 5 2007-08-15 10:10:48 PDT
I would tested, but the last windows nightly build is old (r24872 was built on 05 August 2007).
Alexander Luck
Comment 6 2007-08-19 10:20:27 PDT
r25143: Safari show my language: de-DE
Note You need to log in before you can comment on or make changes to this bug.