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 * A library for general helper code associated with the intl library | 6 * A library for general helper code associated with the intl library |
7 * rather than confined to specific parts of it. | 7 * rather than confined to specific parts of it. |
8 */ | 8 */ |
9 | 9 |
10 library intl_helpers; | 10 library intl_helpers; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 /** | 62 /** |
63 * Initialize the message lookup mechanism. This is for internal use only. | 63 * Initialize the message lookup mechanism. This is for internal use only. |
64 * User applications should import `message_lookup_by_library.dart` and call | 64 * User applications should import `message_lookup_by_library.dart` and call |
65 * `initializeMessages` | 65 * `initializeMessages` |
66 */ | 66 */ |
67 void initializeInternalMessageLookup(Function lookupFunction) { | 67 void initializeInternalMessageLookup(Function lookupFunction) { |
68 if (messageLookup is UninitializedLocaleData) { | 68 if (messageLookup is UninitializedLocaleData) { |
69 messageLookup = lookupFunction(); | 69 messageLookup = lookupFunction(); |
70 } | 70 } |
71 } | 71 } |
OLD | NEW |