Bug 14549 - Locale Language in JavaScript is wrong. But in the User-Agent ok.
Summary: Locale Language in JavaScript is wrong. But in the User-Agent ok.
Status: VERIFIED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 523.x (Safari 3)
Hardware: PC Windows XP
: P3 Normal
Assignee: Nobody
URL: http://developer.apple.com/internet/s...
Keywords: EasyFix, PlatformOnly
Depends on:
Blocks:
 
Reported: 2007-07-07 05:54 PDT by Alexander Luck
Modified: 2007-08-19 10:20 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Luck 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!
Comment 1 Alexey Proskuryakov 2007-07-07 10:16:41 PDT
Confirmed with r23677. Works fine on the Mac.
Comment 2 Alexander Luck 2007-07-07 10:34:16 PDT
Test also with r23677 on Windows XP: not equal -> false
Comment 3 Sam Weinig 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.
Comment 4 Alexey Proskuryakov 2007-08-14 21:38:08 PDT
Fixed in r25088 (please verify).
Comment 5 Alexander Luck 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).
Comment 6 Alexander Luck 2007-08-19 10:20:27 PDT
r25143: Safari show my language: de-DE