Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Issue 449077: Setting the ICU default locale is made explicit. This leads to a few more... (Closed)

Created:
11 years ago by jungshik at Google
Modified:
9 years, 7 months ago
Reviewers:
TVL
CC:
chromium-reviews_googlegroups.com, Paweł Hajdan Jr.
Visibility:
Public.

Description

Setting the ICU default locale is made explicit. This leads to a few more lines of code, but I think it'd be better this way. Setting the ICU default locale 'quitely' as a part of IsLocaleAvailable is partly responsible for bug 26856. With the fix for that bug, Mac Chrome sets the ICU default locale explicitly. Putting Linux/Windows on the same footing is a "good thing" (TM). In addition, I fixed a typo (a spurrious L modifier to a char literal) and resolved one TODO comment (use uloc_getCharacterOrientation to determine the text layout direction). BUG=NONE TEST=Covered by unittests: L10nUtilTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33646

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -36 lines) Patch
M app/l10n_util.cc View 1 2 3 4 5 6 8 chunks +30 lines, -32 lines 0 comments Download
M app/l10n_util_unittest.cc View 1 2 1 chunk +6 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
jungshik at Google
11 years ago (2009-12-01 23:15:22 UTC) #1
TVL
http://codereview.chromium.org/449077/diff/2001/2003 File app/l10n_util_unittest.cc (right): http://codereview.chromium.org/449077/diff/2001/2003#newcode485 app/l10n_util_unittest.cc:485: // Enable these when we localize to Azerbaijani is ...
11 years ago (2009-12-02 01:03:57 UTC) #2
jungshik at Google
On 2009/12/02 01:03:57, TVL wrote: > http://codereview.chromium.org/449077/diff/2001/2003 > File app/l10n_util_unittest.cc (right): > > http://codereview.chromium.org/449077/diff/2001/2003#newcode485 > ...
11 years ago (2009-12-02 09:00:14 UTC) #3
jungshik at Google
Moved SetICUDefaultLocale to GetApplicationLocale() after calling CheckAndResolveLocale. That way, Linux/Windows are really on par with ...
11 years ago (2009-12-02 18:06:10 UTC) #4
TVL
11 years ago (2009-12-02 18:14:54 UTC) #5
lgtm with 2 nit questions.

http://codereview.chromium.org/449077/diff/10002/6003
File app/l10n_util.cc (right):

http://codereview.chromium.org/449077/diff/10002/6003#newcode511
app/l10n_util.cc:511: // to use with CheckAndResolveLocalto get ICU APIs to work
in that locale.
space before to?

http://codereview.chromium.org/449077/diff/10002/6003#newcode513
app/l10n_util.cc:513: // resources), so mirror the Windows/Linux behavior by
calling
s/by/of/ since windows/linux call it directly now also?

Powered by Google App Engine
This is Rietveld 408576698