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

Unified Diff: lib/i18n/intl_message.dart

Issue 10535087: Changes to the i18n messages so that they are invoked as (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/i18n/intl.dart ('k') | tests/lib/i18n/intl_message_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/i18n/intl_message.dart
===================================================================
--- lib/i18n/intl_message.dart (revision 8458)
+++ lib/i18n/intl_message.dart (working copy)
@@ -7,14 +7,20 @@
*
*
* _message example:
- * '''I see ${intl.plural(num_people,
+ * '''I see ${Intl.plural(num_people,
* {'0': 'no one at all',
* '1': 'one other person',
* 'other': '$num_people other people'})} in $place.''''
*
- * Useage example:
- * msg(num_people, place) => new IntlMessage(
- '''I see ${intl.plural(num_people,
+ * Usage examples:
+ * today(date) => intl.message(
+ * "Today's date is $date",
+ * desc: 'Indicate the current date',
+ * examples: {'date' : 'June 8, 2012'});
+ * print(today(new Date.now());
+ *
+ * msg(num_people, place) => intl.message(
+ * '''I see ${Intl.plural(num_people,
* {'0': 'no one at all',
* '1': 'one other person',
* 'other': '$num_people other people'})} in $place.'''',
« no previous file with comments | « lib/i18n/intl.dart ('k') | tests/lib/i18n/intl_message_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698