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

Issue 10535087: Changes to the i18n messages so that they are invoked as (Closed)

Created:
8 years, 6 months ago by Alan Knight
Modified:
8 years, 6 months ago
Reviewers:
Emily Fortuna
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Changes to the i18n messages so that they are invoked as intl.message(...) and the result is a function whose evaluation gives you the result string. Committed: https://code.google.com/p/dart/source/detail?r=8471

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 13

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -32 lines) Patch
M lib/i18n/intl.dart View 1 2 3 4 5 5 chunks +20 lines, -12 lines 0 comments Download
M lib/i18n/intl_message.dart View 1 2 3 1 chunk +10 lines, -4 lines 0 comments Download
M tests/lib/i18n/intl_message_test.dart View 1 2 3 4 5 6 1 chunk +46 lines, -16 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Alan Knight
8 years, 6 months ago (2012-06-08 20:55:45 UTC) #1
Emily Fortuna
lgtm, with comments! :-) https://chromiumcodereview.appspot.com/10535087/diff/8001/lib/i18n/intl.dart File lib/i18n/intl.dart (right): https://chromiumcodereview.appspot.com/10535087/diff/8001/lib/i18n/intl.dart#newcode40 lib/i18n/intl.dart:40: * [message_str] which is string ...
8 years, 6 months ago (2012-06-08 21:50:37 UTC) #2
Alan Knight
https://chromiumcodereview.appspot.com/10535087/diff/8001/lib/i18n/intl.dart File lib/i18n/intl.dart (right): https://chromiumcodereview.appspot.com/10535087/diff/8001/lib/i18n/intl.dart#newcode40 lib/i18n/intl.dart:40: * [message_str] which is string to be translated, which ...
8 years, 6 months ago (2012-06-08 22:04:53 UTC) #3
Emily Fortuna
https://chromiumcodereview.appspot.com/10535087/diff/8001/lib/i18n/intl_message.dart File lib/i18n/intl_message.dart (right): https://chromiumcodereview.appspot.com/10535087/diff/8001/lib/i18n/intl_message.dart#newcode19 lib/i18n/intl_message.dart:19: * examples: {'date' : 'June 8, 2012'}); On 2012/06/08 ...
8 years, 6 months ago (2012-06-08 22:09:40 UTC) #4
Alan Knight
https://chromiumcodereview.appspot.com/10535087/diff/8001/lib/i18n/intl_message.dart File lib/i18n/intl_message.dart (right): https://chromiumcodereview.appspot.com/10535087/diff/8001/lib/i18n/intl_message.dart#newcode19 lib/i18n/intl_message.dart:19: * examples: {'date' : 'June 8, 2012'}); On 2012/06/08 ...
8 years, 6 months ago (2012-06-08 22:14:21 UTC) #5
Emily Fortuna
8 years, 6 months ago (2012-06-08 22:17:14 UTC) #6
https://chromiumcodereview.appspot.com/10535087/diff/8001/lib/i18n/intl_messa...
File lib/i18n/intl_message.dart (right):

https://chromiumcodereview.appspot.com/10535087/diff/8001/lib/i18n/intl_messa...
lib/i18n/intl_message.dart:19: *          examples: {'date' : 'June 8, 2012'});
On 2012/06/08 22:14:21, Alan Knight wrote:
> On 2012/06/08 22:09:40, Emily Fortuna wrote:
> > On 2012/06/08 22:04:53, Alan Knight wrote:
> > > On 2012/06/08 21:50:37, Emily Fortuna wrote:
> > > > I'd recommend not using a date in this example because date formatting
is
> a
> > > > whole different animal....
> > > 
> > > I thought it was actually good to start having examples with them. It'll
> just
> > > use the default format, but that's true for numbers, too. 
> > 
> > Yeah, but technically, you should probably say something like "Today's date
is
> > ${DateFormat.format("yM", date)}" which just seems more trouble to explain
> than
> > it's worth.
> 
> But on the same basis, below I should probably write ${NumFormat.format('i',
> num_people)}, which is similarly too much. I figured it's all right to put in
> something that just uses a default, especially for the moment, and explain the
> more complicated parts as they come up, or in more fully worked out examples.

Fine. The difference being we have an API already written for DateFormat, but
not for NumberFormat...

Powered by Google App Engine
This is Rietveld 408576698