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

Issue 2002783002: Use plural formats and native digits (Closed)

Created:
4 years, 7 months ago by jungshik at Google
Modified:
4 years, 6 months ago
CC:
arv+watch_chromium.org, blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, dbeam+watch-history_chromium.org, Patrick Dubroy, eae+blinkwatch, feature-media-reviews_chromium.org, Greg Levin, jchaffraix+rendering, jshin+watch_chromium.org, kalyank, leviw+renderwatch, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, noyau+watch_chromium.org, oshima+watch_chromium.org, pam+watch_chromium.org, pdr+renderingwatchlist_chromium.org, sadrul, sdefresne+watch_chromium.org, stevenjb+watch_chromium.org, szager+layoutwatch_chromium.org, tfarina, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use plural formats and native digits With codesearch, look for '<ex>[0-9]+</ex> file:grd'. Review each of matches and change them to use plural formats(C++), toLocaleString(JavaScript), or other i18n-safe ways. Moreover, change GetStringFUTF16Int() to use 'FormatNumber' instead of Int*ToString(). Call sites of GetStringFUTF16Int() were reviewed Where native digits are not appropriate (non-UI), call sites were adjusted. Besides, add a warning about 'ASCII digits vs native digits' to base/strings/string_number_conversions.h and add more details on GetPlural* to ui/base/l10n/l10n_util.h. BUG=613331 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation;tryserver.blink:linux_blink_rel,mac_blink_rel Committed: https://crrev.com/bccecf36c6ae6bf612174eaaac7effec854877ee Cr-Commit-Position: refs/heads/master@{#397608}

Patch Set 1 #

Patch Set 2 : fix GetStringFUTF16 and add more comments #

Patch Set 3 : add base:i18n on android/cros #

Patch Set 4 : fix crosbot - still using gyp #

Patch Set 5 : include number_formatting.h explicitly #

Patch Set 6 : drop base_i18n from chrome_browser.gypi #

Patch Set 7 : comment changes: l10n_util #

Total comments: 2

Patch Set 8 : add braces per review #

Patch Set 9 : plural: use "=1" instead of "one" for pop-up block infobar #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -40 lines) Patch
M ash/system/chromeos/network/tray_sms.cc View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M base/strings/string_number_conversions.h View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/app/bookmarks_strings.grdp View 2 chunks +9 lines, -4 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/media/desktop_media_list_ash.cc View 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/media/native_desktop_media_list.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_attributes_storage.cc View 1 2 3 4 2 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/resources/history/history.js View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/history/other_devices.js View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/resources/print_preview/settings/dpi_settings.js View 1 2 3 4 5 6 7 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_utils_desktop.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M components/crash/core/browser/resources/crashes.js View 1 chunk +3 lines, -2 lines 0 comments Download
M ios/chrome/app/resources/history/other_devices.js View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTheme.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutThemeMac.mm View 1 chunk +1 line, -2 lines 0 comments Download
M ui/base/l10n/l10n_util.h View 1 2 3 4 5 6 2 chunks +22 lines, -5 lines 0 comments Download
M ui/base/l10n/l10n_util.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 57 (23 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2002783002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2002783002/20001
4 years, 6 months ago (2016-05-27 17:55:07 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/144557) chromeos_x86-generic_chromium_compile_only_ng on ...
4 years, 6 months ago (2016-05-27 18:12:26 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2002783002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2002783002/40001
4 years, 6 months ago (2016-05-27 20:35:39 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/144662) chromeos_daisy_chromium_compile_only_ng on ...
4 years, 6 months ago (2016-05-27 20:53:11 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2002783002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2002783002/60001
4 years, 6 months ago (2016-05-29 08:05:56 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/73547) chromeos_x86-generic_chromium_compile_only_ng on ...
4 years, 6 months ago (2016-05-29 08:19:48 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2002783002/60002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2002783002/60002
4 years, 6 months ago (2016-05-29 08:35:48 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/229976)
4 years, 6 months ago (2016-05-29 14:25:14 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2002783002/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2002783002/90001
4 years, 6 months ago (2016-05-30 08:50:27 UTC) #24
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/78561)
4 years, 6 months ago (2016-05-30 11:03:04 UTC) #26
jungshik at Google
Hi can you take a look with the following area of focus? stevenjb@ : ash/system ...
4 years, 6 months ago (2016-05-31 23:15:43 UTC) #28
stevenjb
ash/ lgtm
4 years, 6 months ago (2016-05-31 23:34:09 UTC) #30
tkent
third_party/WebKit lgtm
4 years, 6 months ago (2016-06-01 03:22:02 UTC) #31
Sergey Ulanov
chrome/browser/media lgtm
4 years, 6 months ago (2016-06-01 08:02:17 UTC) #32
anthonyvd
c/b/profiles/* lgtm
4 years, 6 months ago (2016-06-01 14:22:12 UTC) #33
Robert Sesek
components/crash/ LGTM
4 years, 6 months ago (2016-06-01 14:34:57 UTC) #34
Mark Mentovai
LGTM in base
4 years, 6 months ago (2016-06-01 16:42:02 UTC) #35
Dan Beam
if i'm reading the documentation on toLocaleString() correctly, should we be pass the UI language ...
4 years, 6 months ago (2016-06-01 21:33:24 UTC) #36
jungshik at Google
Thank you all for taking a look. On 2016/06/01 21:33:24, Dan Beam wrote: > if ...
4 years, 6 months ago (2016-06-01 23:07:19 UTC) #37
jungshik at Google
https://codereview.chromium.org/2002783002/diff/110001/chrome/browser/resources/print_preview/settings/dpi_settings.js File chrome/browser/resources/print_preview/settings/dpi_settings.js (right): https://codereview.chromium.org/2002783002/diff/110001/chrome/browser/resources/print_preview/settings/dpi_settings.js#newcode26 chrome/browser/resources/print_preview/settings/dpi_settings.js:26: if (hDpi > 0 && vDpi > 0 && ...
4 years, 6 months ago (2016-06-01 23:20:22 UTC) #38
jungshik at Google
On 2016/06/01 23:07:19, jungshik at google wrote: > Thank you all for taking a look. ...
4 years, 6 months ago (2016-06-01 23:31:02 UTC) #39
Dan Beam
On 2016/06/01 23:07:19, jungshik at google wrote: > Thank you all for taking a look. ...
4 years, 6 months ago (2016-06-01 23:33:31 UTC) #40
Dan Beam
On 2016/06/01 23:33:31, Dan Beam wrote: > On 2016/06/01 23:07:19, jungshik at google wrote: > ...
4 years, 6 months ago (2016-06-01 23:34:55 UTC) #41
jungshik at Google
On 2016/06/01 23:34:55, Dan Beam wrote: > On 2016/06/01 23:33:31, Dan Beam wrote: > > ...
4 years, 6 months ago (2016-06-02 00:13:22 UTC) #42
Dan Beam
On 2016/06/02 00:13:22, jungshik at google wrote: > On 2016/06/01 23:34:55, Dan Beam wrote: > ...
4 years, 6 months ago (2016-06-02 01:05:25 UTC) #43
jungshik at Google
> > > > I propose we pass something like: > > > > > ...
4 years, 6 months ago (2016-06-02 09:04:44 UTC) #44
Dan Beam
if that's the trail of how the default locale makes it to v8, then lgtm ...
4 years, 6 months ago (2016-06-02 19:15:29 UTC) #45
jungshik at Google
Thank you, Dan ! Peter, can you take a look at chrome/browser/ui? Thank
4 years, 6 months ago (2016-06-02 20:33:38 UTC) #47
jungshik at Google
Jackie, can you take a look at ios/chrome/app/resources/history/? Thanks ! Peter (this time @chromium.org email), ...
4 years, 6 months ago (2016-06-02 20:38:12 UTC) #49
Peter Kasting
LGTM
4 years, 6 months ago (2016-06-02 21:55:08 UTC) #50
Jackie Quinn
On 2016/06/02 21:55:08, Peter Kasting wrote: > LGTM ios lgtm
4 years, 6 months ago (2016-06-02 23:12:06 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2002783002/150001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2002783002/150001
4 years, 6 months ago (2016-06-02 23:53:28 UTC) #54
commit-bot: I haz the power
Committed patchset #9 (id:150001)
4 years, 6 months ago (2016-06-03 03:00:16 UTC) #55
commit-bot: I haz the power
4 years, 6 months ago (2016-06-03 03:01:19 UTC) #57
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/bccecf36c6ae6bf612174eaaac7effec854877ee
Cr-Commit-Position: refs/heads/master@{#397608}

Powered by Google App Engine
This is Rietveld 408576698