Changeset 25088 in webkit
- Timestamp:
- Aug 14, 2007 7:04:53 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r25087 r25088 1 2007-08-14 Steve Falkenburg <sfalken@apple.com> 2 3 <rdar://problem/5411482> Windows user agent language always returns "en" 4 5 Implement defaultLanguage(). 6 7 Reviewed by Oliver. 8 9 * WebCore.vcproj/WebCore.vcproj: Added Language.cpp. 10 * platform/win/Language.cpp: Added. 11 (WebCore::localeInfo): Added. 12 (WebCore::defaultLanguage): Added. 13 * platform/win/TemporaryLinkStubs.cpp: Remove defaultLanguage stub. 14 1 15 2007-08-14 Sam Weinig <sam@webkit.org> 2 16 -
trunk/WebCore/WebCore.vcproj/WebCore.vcproj
r24995 r25088 3529 3529 > 3530 3530 </File> 3531 <File 3531 <File 3532 RelativePath="..\platform\win\Language.cpp" 3533 > 3534 </File> 3535 <File 3532 3536 RelativePath="..\platform\win\MIMETypeRegistryWin.cpp" 3533 3537 > -
trunk/WebCore/platform/win/TemporaryLinkStubs.cpp
r25081 r25088 84 84 bool AXObjectCache::gAccessibilityEnabled = false; 85 85 86 String WebCore::defaultLanguage() { return "en"; }87 88 86 namespace WebCore { 89 87 -
trunk/WebKit/win/ChangeLog
r25085 r25088 1 2007-08-14 Steve Falkenburg <sfalken@apple.com> 2 3 <rdar://problem/5411482> Windows user agent language always returns "en" 4 5 Call WebCore::defaultLanguage() to pick up UA language. 6 7 Reviewed by Oliver. 8 9 * WebView.cpp: 10 (WebView::userAgentForKURL): 11 1 12 2007-08-15 Peter Kasting <zerodpx@gmail.org> 2 13 -
trunk/WebKit/win/WebView.cpp
r25085 r25088 71 71 #include <WebCore/IntRect.h> 72 72 #include <WebCore/KeyboardEvent.h> 73 #include <WebCore/Language.h> 73 74 #include <WebCore/MIMETypeRegistry.h> 74 75 #include <WebCore/NotImplemented.h> … … 1554 1555 } 1555 1556 1556 static String language()1557 {1558 TCHAR languageName[256];1559 if (!GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SISO639LANGNAME, languageName, ARRAYSIZE(languageName)))1560 return "en";1561 else1562 return String(languageName, (unsigned int)_tcslen(languageName));1563 }1564 1565 1557 static String webKitVersion() 1566 1558 { … … 1635 1627 1636 1628 if (!m_userAgentStandard.length()) 1637 m_userAgentStandard = String::format("Mozilla/5.0 (Windows; U; %s; %s) AppleWebKit/%s (KHTML, like Gecko)%s%s", osVersion().latin1().data(), language().latin1().data(), webKitVersion().latin1().data(), (m_applicationName.length() ? " " : ""), m_applicationName.latin1().data());1629 m_userAgentStandard = String::format("Mozilla/5.0 (Windows; U; %s; %s) AppleWebKit/%s (KHTML, like Gecko)%s%s", osVersion().latin1().data(), defaultLanguage().latin1().data(), webKitVersion().latin1().data(), (m_applicationName.length() ? " " : ""), m_applicationName.latin1().data()); 1638 1630 return m_userAgentStandard; 1639 1631 }
Note: See TracChangeset
for help on using the changeset viewer.