| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Internationalization object providing access to message formatting objects, | 6 * Internationalization object providing access to message formatting objects, |
| 7 * date formatting, parsing, bidirectional text relative to a specific locale. | 7 * date formatting, parsing, bidirectional text relative to a specific locale. |
| 8 */ | 8 */ |
| 9 #library('intl'); | 9 #library('intl'); |
| 10 | 10 |
| 11 #import('date_format.dart'); | |
| 12 #import('src/intl_helpers.dart'); | 11 #import('src/intl_helpers.dart'); |
| 12 #import('dart:math'); |
| 13 #import('date_symbols.dart'); |
| 14 #import('src/date_format_internal.dart'); |
| 13 | 15 |
| 16 #source('date_format.dart'); |
| 17 #source('src/date_format_field.dart'); |
| 18 #source('src/date_format_helpers.dart'); |
| 14 #source('bidi_formatter.dart'); | 19 #source('bidi_formatter.dart'); |
| 15 #source('bidi_utils.dart'); | 20 #source('bidi_utils.dart'); |
| 16 | 21 |
| 17 class Intl { | 22 class Intl { |
| 18 /** | 23 /** |
| 19 * String indicating the locale code with which the message is to be | 24 * String indicating the locale code with which the message is to be |
| 20 * formatted (such as en-CA). | 25 * formatted (such as en-CA). |
| 21 */ | 26 */ |
| 22 String _locale; | 27 String _locale; |
| 23 | 28 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 /** | 216 /** |
| 212 * Initialize the message lookup mechanism. This is for internal use only. | 217 * Initialize the message lookup mechanism. This is for internal use only. |
| 213 * User applications should import message_lookup_local.dart and call | 218 * User applications should import message_lookup_local.dart and call |
| 214 * initializeMessages | 219 * initializeMessages |
| 215 */ | 220 */ |
| 216 void initializeInternalMessageLookup(Function lookupFunction) { | 221 void initializeInternalMessageLookup(Function lookupFunction) { |
| 217 if (_messageLookup is UninitializedLocaleData) { | 222 if (_messageLookup is UninitializedLocaleData) { |
| 218 _messageLookup = lookupFunction(); | 223 _messageLookup = lookupFunction(); |
| 219 } | 224 } |
| 220 } | 225 } |
| OLD | NEW |