WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
93083
[Chromium-win] Use the default locale only if the browser locale matches to it
https://bugs.webkit.org/show_bug.cgi?id=93083
Summary
[Chromium-win] Use the default locale only if the browser locale matches to it
Kent Tamura
Reported
2012-08-03 03:09:06 PDT
http://code.google.com/p/chromium/issues/detail?id=139337
For a calendar picker, we have used month names and day-of-week names obtained from the OS default locale. However, the year-month format and [Today] [Clear] labels are decided with the browser locale. So, if the OS default locale is en-US and the browser locale is ja-JP, - Month names and DOW names are English - [Today] [Clear] labels are Japanese, and year-month format is for ja-JP. The calendar picker shows '2012年 August' (OOPS!)
Attachments
Patch
(3.25 KB, patch)
2012-08-03 03:18 PDT
,
Kent Tamura
no flags
Details
Formatted Diff
Diff
Patch 2
(3.67 KB, patch)
2012-08-03 04:01 PDT
,
Kent Tamura
morrita
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Kent Tamura
Comment 1
2012-08-03 03:18:49 PDT
Created
attachment 156305
[details]
Patch
Hajime Morrita
Comment 2
2012-08-03 03:51:21 PDT
Comment on
attachment 156305
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=156305&action=review
> Source/WebCore/platform/text/LocaleWin.cpp:81 > - static LocaleWin* currentLocale = LocaleWin::create(LOCALE_USER_DEFAULT).leakPtr(); > + static LocaleWin* currentLocale;
I'd extract LCID lookup part to a function, then we easily do early return and the code will look simpler.
Kent Tamura
Comment 3
2012-08-03 04:01:51 PDT
Created
attachment 156315
[details]
Patch 2 make a function
Kent Tamura
Comment 4
2012-08-03 04:05:53 PDT
Comment on
attachment 156305
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=156305&action=review
>> Source/WebCore/platform/text/LocaleWin.cpp:81 >> + static LocaleWin* currentLocale; > > I'd extract LCID lookup part to a function, then we easily do early return and the code will look simpler.
Indeed. Updated the patch.
Kent Tamura
Comment 5
2012-08-05 18:13:00 PDT
Committed
r124721
: <
http://trac.webkit.org/changeset/124721
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug