Summary: | Chromium-Mac: Use the default locale only if the browser locale matches to it | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Kent Tamura <tkent> | ||||
Component: | Platform | Assignee: | Kent Tamura <tkent> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | morrita | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Kent Tamura
2012-08-05 23:26:35 PDT
Created attachment 156609 [details]
Patch
Update the summary to avoid unexpected Gmail threading. Comment on attachment 156609 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=156609&action=review > Source/WebCore/platform/text/mac/LocaleMac.mm:92 > + String browserLanguage = languageFromLocale(defaultLanguage()); Passing defulat"Language" to languageFrom"Locale"(). is this right? Comment on attachment 156609 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=156609&action=review >> Source/WebCore/platform/text/mac/LocaleMac.mm:92 >> + String browserLanguage = languageFromLocale(defaultLanguage()); > > Passing defulat"Language" to languageFrom"Locale"(). is this right? Unfortunately, it's right. defaultLanguage() returns a locale identifier like "en-US" as well as a language identifier like "en". Committed r124834: <http://trac.webkit.org/changeset/124834> |