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

Issue 1103293004: Use ICU plural syntax in more place (Closed)

Created:
5 years, 7 months ago by jungshik at Google
Modified:
5 years, 7 months ago
CC:
chromium-reviews, asanka, benjhayden+dwatch_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use ICU plural formatting in more places 1. Recently close tabs 2. Download cancel dialog 3. Cloud Printer discovery 4. extension: usb device selection For #2, some strings are revised per the string review with ainslie@. For both browser shutdown and incognito exit, the title is simply 'Download in progress' and the 'go-ahead' button is simply 'Cancel download' (or their plural forms). Besides, recently_closed.js is also removed because it's not used any more and removing it let us drop two strings (about closed_tabs) that has become unnecessary with this CL. BUG=21407, 455005, 482092 TEST=Open a new window, open multiple tabs and close the windows. In another window, go to 'Recent tabs' menu. '# tabs' for the closed window is shown as expected TEST=1. Go to http://www.thinkbroadband.com/download.html 2. Start downloading a single file 3. Try to quit chrome before the download is completed 4. Check the dialog popping up. TEST=Do the above with multiple file downloads TEST=Do the above two in the only open incognito window (close the only open incognito window) Committed: https://crrev.com/ec68f03e4f4be911752b005fb82b9e49acafea51 Cr-Commit-Position: refs/heads/master@{#329747}

Patch Set 1 #

Patch Set 2 : fix more strings #

Patch Set 3 : use NSString wrapper on Mac and remove one redundatnt string #

Patch Set 4 : fix typo in incognito string #

Patch Set 5 : update comment in generated_strings.grd #

Total comments: 13

Patch Set 6 : review comments addressed; recently_clo*js dropped #

Total comments: 4

Patch Set 7 : correct mac string ids and attempt to fix unit_tests #

Patch Set 8 : unit_tests fixed #

Patch Set 9 : incognito button text unified to regular button #

Patch Set 10 : rebase; hid device string #

Patch Set 11 : fix IDS_USB #

Patch Set 12 : extension..grd fix #

Patch Set 13 : per string review by ainslie@ #

Total comments: 3

Patch Set 14 : Peter's comments addressed #

Total comments: 1

Patch Set 15 : recently_closed.js restored per estade #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -159 lines) Patch
M chrome/app/chromium_strings.grd View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -8 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +41 lines, -29 lines 0 comments Download
M chrome/app/google_chrome_strings.grd View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -8 lines 0 comments Download
M chrome/browser/app_controller_mac.mm View 1 2 3 4 5 6 1 chunk +9 lines, -17 lines 0 comments Download
M chrome/browser/local_discovery/privet_notifications.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/local_discovery/privet_notifications.cc View 1 2 3 4 5 3 chunks +9 lines, -15 lines 0 comments Download
M chrome/browser/local_discovery/privet_notifications_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/history_menu_bridge.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -8 lines 0 comments Download
M chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/download/download_in_progress_dialog_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +14 lines, -40 lines 0 comments Download
M chrome/browser/ui/views/frame/global_menu_bar_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -6 lines 0 comments Download
M extensions/browser/api/device_permissions_prompt.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -6 lines 0 comments Download
M extensions/extensions_strings.grd View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -9 lines 0 comments Download

Messages

Total messages: 48 (12 generated)
jungshik at Google
avi@chromium.org: Please review changes in mac UI finnur@chromium.org: Please review changes in extensions/* pkasting@chromium.org: Please ...
5 years, 7 months ago (2015-05-01 20:18:47 UTC) #2
jungshik at Google
estade@: Is recently_closed.js still used in NTP? More specifically, is this function used? Didn't we ...
5 years, 7 months ago (2015-05-01 20:25:09 UTC) #4
jungshik at Google
https://codereview.chromium.org/1103293004/diff/80001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (left): https://codereview.chromium.org/1103293004/diff/80001/chrome/app/generated_resources.grd#oldcode11684 chrome/app/generated_resources.grd:11684: <message name="IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_SINGLE" IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_SINGLE and IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_MULTIPLE are used in recently_closed.js, ...
5 years, 7 months ago (2015-05-01 20:28:34 UTC) #5
jungshik at Google
shrike@, this CL fixes 'download progress' dialog (title, button, contents). PTAL. Thanks
5 years, 7 months ago (2015-05-01 20:30:09 UTC) #7
shrike
On 2015/05/01 20:30:09, Jungshik at google wrote: > shrike@, this CL fixes 'download progress' dialog ...
5 years, 7 months ago (2015-05-01 20:58:51 UTC) #8
Avi (use Gerrit)
It's all lovely to me. LGTM https://codereview.chromium.org/1103293004/diff/80001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1103293004/diff/80001/chrome/app/generated_resources.grd#newcode14950 chrome/app/generated_resources.grd:14950: + <message name="IDS_LOCAL_DISOCVERY_NOTIFICATION_CONTENTS_PRINTER" ...
5 years, 7 months ago (2015-05-01 21:02:19 UTC) #9
Peter Kasting
I assumed you wanted me to review the non-Mac parts of c/b/ui, as I'm not ...
5 years, 7 months ago (2015-05-01 21:11:29 UTC) #10
shrike
On 2015/05/01 21:11:29, Peter Kasting wrote: > https://codereview.chromium.org/1103293004/diff/80001/chrome/app/chromium_strings.grd#newcode651 > chrome/app/chromium_strings.grd:651: =1 {Cancel Download and Quit ...
5 years, 7 months ago (2015-05-01 21:25:35 UTC) #11
Peter Kasting
On 2015/05/01 21:25:35, shrike wrote: > On 2015/05/01 21:11:29, Peter Kasting wrote: > > > ...
5 years, 7 months ago (2015-05-01 21:31:54 UTC) #12
shrike
https://codereview.chromium.org/1103293004/diff/80001/chrome/app/chromium_strings.grd File chrome/app/chromium_strings.grd (right): https://codereview.chromium.org/1103293004/diff/80001/chrome/app/chromium_strings.grd#newcode651 chrome/app/chromium_strings.grd:651: =1 {Cancel Download and Quit Chromium} On 2015/05/01 21:11:28, ...
5 years, 7 months ago (2015-05-01 21:51:40 UTC) #13
Peter Kasting
On 2015/05/01 21:51:40, shrike wrote: > > Button labels should be descriptive, but there's a ...
5 years, 7 months ago (2015-05-01 21:59:16 UTC) #14
jungshik at Google
Thanks for the review. Peter, yeah, I meant chrome/browser/ui (I realized that after pressing 'send' ...
5 years, 7 months ago (2015-05-01 22:25:58 UTC) #15
Evan Stade
On 2015/05/01 20:25:09, Jungshik at google wrote: > estade@: Is recently_closed.js still used in NTP? ...
5 years, 7 months ago (2015-05-01 22:41:59 UTC) #16
jungshik at Google
cleer@, can you review string changes? It's based on https://code.google.com/p/chromium/issues/detail?id=455005#c7 (which you liked in comment ...
5 years, 7 months ago (2015-05-01 23:10:59 UTC) #18
jungshik at Google
cleer@ : can you give your take on the questions below? estade@: thanks. I removed ...
5 years, 7 months ago (2015-05-01 23:18:51 UTC) #19
jungshik at Google
Sending this (please read the quoted msg below) again because I messed up the reviewer's ...
5 years, 7 months ago (2015-05-02 00:25:32 UTC) #21
jungshik at Google
Will update to fix unittest
5 years, 7 months ago (2015-05-02 01:56:39 UTC) #22
Finnur
extensions/* LGTM
5 years, 7 months ago (2015-05-04 10:16:20 UTC) #23
jungshik at Google
https://codereview.chromium.org/1103293004/diff/100001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1103293004/diff/100001/chrome/app/generated_resources.grd#newcode2227 chrome/app/generated_resources.grd:2227: + other {Cancel downloads and exit incognito mode}} On ...
5 years, 7 months ago (2015-05-04 19:27:44 UTC) #24
jungshik at Google
ainslie@ and cleer@: can you review the string changes for 'download in progress'? Summary of ...
5 years, 7 months ago (2015-05-05 18:52:05 UTC) #26
chromium-reviews
Those strings look good to me. We should remove case #4 just use the shorter ...
5 years, 7 months ago (2015-05-06 15:27:23 UTC) #27
jungshik at Google
On 2015/05/06 15:27:23, chromium-reviews wrote: > Those strings look good to me. > > We ...
5 years, 7 months ago (2015-05-06 22:10:35 UTC) #28
chromium-reviews
Hmm. Wait. Maybe I misunderstood :/ In general, on Windows we use "Exit" and Mac ...
5 years, 7 months ago (2015-05-07 00:19:27 UTC) #29
jungshik at Google
On 2015/05/07 00:19:27, chromium-reviews wrote: > Hmm. Wait. Maybe I misunderstood :/ > > In ...
5 years, 7 months ago (2015-05-07 22:26:32 UTC) #30
jungshik at Google
Alex has just reviewed string changes with me. The latest CL reflects what he suggested ...
5 years, 7 months ago (2015-05-12 21:43:28 UTC) #32
Peter Kasting
LGTM https://codereview.chromium.org/1103293004/diff/240001/chrome/browser/ui/cocoa/history_menu_bridge.mm File chrome/browser/ui/cocoa/history_menu_bridge.mm (right): https://codereview.chromium.org/1103293004/diff/240001/chrome/browser/ui/cocoa/history_menu_bridge.mm#newcode188 chrome/browser/ui/cocoa/history_menu_bridge.mm:188: item->title =l10n_util::GetPluralStringFUTF16( Nit: Space after = https://codereview.chromium.org/1103293004/diff/240001/chrome/browser/ui/views/download/download_in_progress_dialog_view.cc File ...
5 years, 7 months ago (2015-05-12 21:52:03 UTC) #33
gene
lgtm for local_discovery
5 years, 7 months ago (2015-05-13 08:17:34 UTC) #34
jungshik at Google
dbeam@ : can you approve the ntp4 changes? It's basically removing recently_closed.js (that is NOT ...
5 years, 7 months ago (2015-05-13 20:37:44 UTC) #36
Evan Stade
https://codereview.chromium.org/1103293004/diff/260001/chrome/browser/resources/ntp4/new_tab.html File chrome/browser/resources/ntp4/new_tab.html (right): https://codereview.chromium.org/1103293004/diff/260001/chrome/browser/resources/ntp4/new_tab.html#newcode125 chrome/browser/resources/ntp4/new_tab.html:125: <button id="recently-closed-menu-button" I think you need to remove this ...
5 years, 7 months ago (2015-05-13 22:14:32 UTC) #38
jungshik at Google
On 2015/05/13 22:14:32, Evan Stade wrote: > https://codereview.chromium.org/1103293004/diff/260001/chrome/browser/resources/ntp4/new_tab.html > File chrome/browser/resources/ntp4/new_tab.html (right): > > https://codereview.chromium.org/1103293004/diff/260001/chrome/browser/resources/ntp4/new_tab.html#newcode125 ...
5 years, 7 months ago (2015-05-13 22:34:39 UTC) #40
Evan Stade
On 2015/05/13 22:34:39, Jungshik at google wrote: > On 2015/05/13 22:14:32, Evan Stade wrote: > ...
5 years, 7 months ago (2015-05-13 22:40:27 UTC) #41
jungshik at Google
On 2015/05/13 22:40:27, Evan Stade wrote: > On 2015/05/13 22:34:39, Jungshik at google wrote: > ...
5 years, 7 months ago (2015-05-13 22:50:57 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1103293004/280001
5 years, 7 months ago (2015-05-13 22:52:09 UTC) #45
Dan Beam
On 2015/05/13 22:50:57, Jungshik at google wrote: > On 2015/05/13 22:40:27, Evan Stade wrote: > ...
5 years, 7 months ago (2015-05-13 23:31:41 UTC) #46
commit-bot: I haz the power
Committed patchset #15 (id:280001)
5 years, 7 months ago (2015-05-14 00:03:42 UTC) #47
commit-bot: I haz the power
5 years, 7 months ago (2015-05-14 00:04:51 UTC) #48
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/ec68f03e4f4be911752b005fb82b9e49acafea51
Cr-Commit-Position: refs/heads/master@{#329747}

Powered by Google App Engine
This is Rietveld 408576698