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

Unified Diff: pkg/intl/lib/message_lookup_local.dart

Issue 11091012: Clean up TODOs and comments in Intl (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « pkg/intl/lib/intl.dart ('k') | pkg/intl/tool/generate_locale_data_files.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/lib/message_lookup_local.dart
===================================================================
--- pkg/intl/lib/message_lookup_local.dart (revision 13364)
+++ pkg/intl/lib/message_lookup_local.dart (working copy)
@@ -9,32 +9,7 @@
* 'messages_en_US'. The prefix is set in the [initializeMessages] call, which
* must be made for a locale before any lookups can be done.
*
- *
- * _message example:
- * '''I see ${Intl.plural(num_people,
- * {'0': 'no one at all',
- * '1': 'one other person',
- * 'other': '$num_people other people'})} in $place.''''
- *
- * 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.'''',
- * desc: 'Description of how many people are seen as program start.',
- * examples: {'num_people': 3, 'place': 'London'});
- *
- * Calling `msg({'num_people': 2, 'place': 'Athens'});` would
- * produce "I see 2 other people in Athens." as output.
- *
- * See tests/message_format_test.dart for more examples.
+ * See Intl class comment or `tests/message_format_test.dart` for more examples.
*/
//TODO(efortuna): documentation example involving the offset parameter?
« no previous file with comments | « pkg/intl/lib/intl.dart ('k') | pkg/intl/tool/generate_locale_data_files.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698