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 23591040: Use ICU for string pluralization in the extension permission dialog. (Closed)

Created:
7 years, 3 months ago by Sam McNally
Modified:
7 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@gtk-extension-install-dialog
Visibility:
Public.

Description

Use ICU for string pluralization in the extension permission dialog. This adds support for using the correct plural form of a string for any language. In particular, this uses the aforementioned support in the extensions permission dialog for website access and retained file access. BUG=290046 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=224700

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -54 lines) Patch
M chrome/app/generated_resources.grd View 2 chunks +114 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_install_prompt.cc View 1 2 3 1 chunk +13 lines, -3 lines 0 comments Download
M chrome/common/extensions/permissions/permission_message.cc View 1 2 3 1 chunk +20 lines, -10 lines 0 comments Download
M chrome/common/extensions/permissions/permissions_data_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/base/l10n/l10n_util.h View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M ui/base/l10n/l10n_util.cc View 1 2 3 4 2 chunks +22 lines, -0 lines 0 comments Download
A ui/base/l10n/l10n_util_plurals.h View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
A ui/base/l10n/l10n_util_plurals.cc View 1 2 3 4 1 chunk +64 lines, -0 lines 0 comments Download
M ui/base/l10n/time_format.cc View 1 2 3 4 2 chunks +8 lines, -36 lines 0 comments Download
M ui/ui.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Sam McNally
7 years, 3 months ago (2013-09-12 17:52:27 UTC) #1
benwells
lgtm
7 years, 3 months ago (2013-09-12 23:52:20 UTC) #2
Peter Kasting
This is problematic. Many languages have constraints around strings relating to numbers, beyond just English's ...
7 years, 3 months ago (2013-09-12 23:57:54 UTC) #3
tony
See go/plurals , which also links to http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html . I think it's OK if you ...
7 years, 3 months ago (2013-09-13 00:12:37 UTC) #4
benwells
On 2013/09/13 00:12:37, tony wrote: > See go/plurals , which also links to > http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html ...
7 years, 3 months ago (2013-09-16 19:32:35 UTC) #5
Peter Kasting
On 2013/09/16 19:32:35, benwells wrote: > It seems like we have three options: > 1. ...
7 years, 3 months ago (2013-09-16 20:25:04 UTC) #6
Sam McNally
On 2013/09/16 20:25:04, Peter Kasting wrote: > On 2013/09/16 19:32:35, benwells wrote: > > It ...
7 years, 3 months ago (2013-09-16 22:31:30 UTC) #7
benwells
+tony for review Wow. I'll defer review to tc who obviously knows more about this ...
7 years, 3 months ago (2013-09-19 01:22:03 UTC) #8
tony
https://codereview.chromium.org/23591040/diff/32001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/23591040/diff/32001/chrome/app/generated_resources.grd#newcode4151 chrome/app/generated_resources.grd:4151: + Access your data on <ph name="NUMBER_OF_OTHER_WEBSITES">$1<ex>5</ex></ph> websites Will ...
7 years, 3 months ago (2013-09-19 17:00:39 UTC) #9
Sam McNally
https://codereview.chromium.org/23591040/diff/32001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/23591040/diff/32001/chrome/app/generated_resources.grd#newcode4151 chrome/app/generated_resources.grd:4151: + Access your data on <ph name="NUMBER_OF_OTHER_WEBSITES">$1<ex>5</ex></ph> websites On ...
7 years, 3 months ago (2013-09-20 04:10:55 UTC) #10
tony
This looks great. LGTM, with some minor comments. https://codereview.chromium.org/23591040/diff/74001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/23591040/diff/74001/chrome/app/generated_resources.grd#newcode4062 chrome/app/generated_resources.grd:4062: + ...
7 years, 3 months ago (2013-09-20 16:56:43 UTC) #11
Sam McNally
https://codereview.chromium.org/23591040/diff/74001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/23591040/diff/74001/chrome/app/generated_resources.grd#newcode4062 chrome/app/generated_resources.grd:4062: + desc="A line of explanatory text that precedes the ...
7 years, 3 months ago (2013-09-22 22:53:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sammc@chromium.org/23591040/92001
7 years, 3 months ago (2013-09-22 23:09:37 UTC) #13
commit-bot: I haz the power
Change committed as 224700
7 years, 3 months ago (2013-09-23 10:30:56 UTC) #14
jungshik at Google
7 years, 3 months ago (2013-09-23 19:33:33 UTC) #15
Message was sent while issue was closed.
Retroactive LGTM for the last patch set :-)

On 2013/09/13 00:12:37, tony wrote:
> See go/plurals , which also links to
>
http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rul...

> We do use ICU, so it's possible to use their plural formatting, but it's kind
of
> a pain to set up in grit (it actually doesn't look like we do this anymore).

Tony, what problem do you see with handling plurals the way it's done internally
at Google as described in go/plural? Chrome 'pioneered' plural handling before
any of Google products did and we decided to use multi-message approaches (6
msgs total) as is done here, but I think we eventually have to move to the
Google internal way because our translators are now familiar with that approach.
More importantly, I believe it'll scale better for other strings (that need
proper plural handling). 

Well, I'd better take this offline. I'll send you an email.

Powered by Google App Engine
This is Rietveld 408576698