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

Unified Diff: pkg/intl/lib/src/date_format_internal.dart

Issue 11669013: Document date format initialization better and make it possible to use en_US dates without it (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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/date_symbols.dart ('k') | pkg/intl/lib/src/intl_helpers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/lib/src/date_format_internal.dart
===================================================================
--- pkg/intl/lib/src/date_format_internal.dart (revision 16450)
+++ pkg/intl/lib/src/date_format_internal.dart (working copy)
@@ -14,6 +14,7 @@
library date_format_internal;
import 'intl_helpers.dart';
+import '../date_symbols.dart';
/**
* This holds the symbols to be used for date/time formatting, indexed
@@ -23,7 +24,8 @@
* result in an informative error message.
*/
var dateTimeSymbols =
- const UninitializedLocaleData('initializeDateFormatting(<locale>)');
+ new UninitializedLocaleData('initializeDateFormatting(<locale>)',
+ en_USSymbols);
/**
* This holds the patterns used for date/time formatting, indexed
@@ -33,7 +35,8 @@
* result in an informative error message.
*/
var dateTimePatterns =
- const UninitializedLocaleData('initializeDateFormatting(<locale>)');
+ new UninitializedLocaleData('initializeDateFormatting(<locale>)',
+ en_USPatterns);
/**
* Initialize the symbols dictionary. This should be passed a function that
« no previous file with comments | « pkg/intl/lib/date_symbols.dart ('k') | pkg/intl/lib/src/intl_helpers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698