| 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 // TODO(rnystrom): Use "package:" import when test.dart supports it (#4968). | |
| 12 #import('../htmlescape/lib/htmlescape.dart'); | |
| 13 | |
| 14 #import('date_format.dart'); | 11 #import('date_format.dart'); |
| 15 #import('lib/intl_helpers.dart'); | 12 #import('src/intl_helpers.dart'); |
| 16 | 13 |
| 17 #source('bidi_formatter.dart'); | 14 #source('bidi_formatter.dart'); |
| 18 #source('bidi_utils.dart'); | 15 #source('bidi_utils.dart'); |
| 19 | 16 |
| 20 class Intl { | 17 class Intl { |
| 21 /** | 18 /** |
| 22 * String indicating the locale code with which the message is to be | 19 * String indicating the locale code with which the message is to be |
| 23 * formatted (such as en-CA). | 20 * formatted (such as en-CA). |
| 24 */ | 21 */ |
| 25 String _locale; | 22 String _locale; |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 /** | 211 /** |
| 215 * Initialize the message lookup mechanism. This is for internal use only. | 212 * Initialize the message lookup mechanism. This is for internal use only. |
| 216 * User applications should import message_lookup_local.dart and call | 213 * User applications should import message_lookup_local.dart and call |
| 217 * initializeMessages | 214 * initializeMessages |
| 218 */ | 215 */ |
| 219 void initializeInternalMessageLookup(Function lookupFunction) { | 216 void initializeInternalMessageLookup(Function lookupFunction) { |
| 220 if (_messageLookup is UninitializedLocaleData) { | 217 if (_messageLookup is UninitializedLocaleData) { |
| 221 _messageLookup = lookupFunction(); | 218 _messageLookup = lookupFunction(); |
| 222 } | 219 } |
| 223 } | 220 } |
| OLD | NEW |