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

Issue 1989563002: i18n of Zoom % to use locally correct numeric glyphs (Closed)

Created:
4 years, 7 months ago by Greg Levin
Modified:
4 years, 7 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, tfarina, michaelpg+watch-options_chromium.org, jshin+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

i18n of Zoom % to use locally correct numeric glyphs BUG=475228 TEST=Switch to language with non-Arabic numerals (e.g., Persian), check that Zoom percentages are rendered with non-Arabic numerals. See issue for list of places in UI where Zoom % appears. Committed: https://crrev.com/945ea3ae79096e02e4a86dafc90e59a26609db59 Cr-Commit-Position: refs/heads/master@{#395841}

Patch Set 1 #

Total comments: 15

Patch Set 2 : Address reviews (and merge) #

Total comments: 13

Patch Set 3 : Address reviews, fix Mac compile #

Total comments: 3

Patch Set 4 : Add unit test for FormatPercent() #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -42 lines) Patch
M base/i18n/number_formatting.h View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M base/i18n/number_formatting.cc View 1 2 4 chunks +8 lines, -2 lines 0 comments Download
M base/i18n/number_formatting_unittest.cc View 1 2 3 1 chunk +26 lines, -0 lines 1 comment Download
M chrome/app/generated_resources.grd View 1 2 3 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/toolbar/app_menu_model.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_bubble_view.cc View 1 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_view.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/toolbar/app_menu.cc View 1 2 4 chunks +5 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.cc View 1 2 chunks +2 lines, -5 lines 0 comments Download

Messages

Total messages: 35 (11 generated)
Greg Levin
jshin@ - base/i18n/ stevenjb@ - chrome/browser/ui/webui/options/ pkasting@ - everything else Please have a look! https://codereview.chromium.org/1989563002/diff/1/base/i18n/number_formatting.cc ...
4 years, 7 months ago (2016-05-17 18:17:44 UTC) #2
jungshik at Google
Our current use cases for percent format (we always use integer percent) does not require ...
4 years, 7 months ago (2016-05-17 23:58:43 UTC) #3
jungshik at Google
On 2016/05/17 23:58:43, jshin (jungshik at google) wrote: > Our current use cases for percent ...
4 years, 7 months ago (2016-05-18 00:01:48 UTC) #4
Peter Kasting
https://codereview.chromium.org/1989563002/diff/1/chrome/browser/ui/toolbar/app_menu_model.cc File chrome/browser/ui/toolbar/app_menu_model.cc (right): https://codereview.chromium.org/1989563002/diff/1/chrome/browser/ui/toolbar/app_menu_model.cc#newcode943 chrome/browser/ui/toolbar/app_menu_model.cc:943: zoom_label_ = base::FormatPercent(zoom_percent); On 2016/05/17 18:17:44, Greg Levin wrote: ...
4 years, 7 months ago (2016-05-18 02:37:25 UTC) #5
jungshik at Google
On 2016/05/17 23:58:43, jshin (jungshik at google) wrote: > Well, none of percent format used ...
4 years, 7 months ago (2016-05-18 05:48:11 UTC) #6
Greg Levin
+tapted@ for chrome/browser/ui/cocoa/ (Please take a close look at these, since I'm not compiling or ...
4 years, 7 months ago (2016-05-18 21:33:45 UTC) #8
jungshik at Google
On 2016/05/18 21:33:45, Greg Levin wrote: > +tapted@ for chrome/browser/ui/cocoa/ > (Please take a close ...
4 years, 7 months ago (2016-05-18 22:33:39 UTC) #9
jungshik at Google
LGTM with nits below taken care of (+ an *optional* switch to msg fmt :-)) ...
4 years, 7 months ago (2016-05-18 22:35:03 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1989563002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1989563002/20001
4 years, 7 months ago (2016-05-18 22:36:06 UTC) #12
jungshik at Google
Just for the record. ICU caches NumberFormat (DECIMAL) here: https://code.google.com/p/chromium/codesearch#chromium/src/third_party/icu/source/i18n/numfmt.cpp&l=1050
4 years, 7 months ago (2016-05-18 22:36:26 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/206038)
4 years, 7 months ago (2016-05-18 22:54:34 UTC) #15
tapted
cocoa lgtm when it compiles :) I patched it in - looks good! - http://imgur.com/SnrJpCq ...
4 years, 7 months ago (2016-05-19 03:08:42 UTC) #16
Peter Kasting
LGTM https://codereview.chromium.org/1989563002/diff/20001/base/i18n/number_formatting.cc File base/i18n/number_formatting.cc (right): https://codereview.chromium.org/1989563002/diff/20001/base/i18n/number_formatting.cc#newcode95 base/i18n/number_formatting.cc:95: Nit: I'd remove this blank line and instead ...
4 years, 7 months ago (2016-05-19 09:35:52 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1989563002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1989563002/40001
4 years, 7 months ago (2016-05-19 15:33:06 UTC) #19
Greg Levin
jshin@ : >> Given that I now have FormatPercent(), is this preferable to: >> >> ...
4 years, 7 months ago (2016-05-19 15:42:14 UTC) #20
stevenjb
lgtm https://codereview.chromium.org/1989563002/diff/40001/base/i18n/number_formatting.h File base/i18n/number_formatting.h (right): https://codereview.chromium.org/1989563002/diff/40001/base/i18n/number_formatting.h#newcode27 base/i18n/number_formatting.h:27: // => "12%" in English, "12 %" in ...
4 years, 7 months ago (2016-05-19 15:57:08 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-19 17:42:29 UTC) #23
Greg Levin
jshin@ - Please have a quick look at FormatPercent() unit test https://codereview.chromium.org/1989563002/diff/40001/base/i18n/number_formatting.h File base/i18n/number_formatting.h (right): ...
4 years, 7 months ago (2016-05-19 19:27:00 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1989563002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1989563002/60001
4 years, 7 months ago (2016-05-19 19:27:11 UTC) #26
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-19 21:27:56 UTC) #28
jungshik at Google
Oh. I was wondering why this CL was not landed. Apparently, you're waiting for my ...
4 years, 7 months ago (2016-05-25 07:48:30 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1989563002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1989563002/60001
4 years, 7 months ago (2016-05-25 07:48:54 UTC) #32
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-25 09:37:45 UTC) #33
commit-bot: I haz the power
4 years, 7 months ago (2016-05-25 09:39:31 UTC) #35
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/945ea3ae79096e02e4a86dafc90e59a26609db59
Cr-Commit-Position: refs/heads/master@{#395841}

Powered by Google App Engine
This is Rietveld 408576698