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

Side by Side Diff: pkg/intl/lib/intl.dart

Issue 10952004: Change intl to use new pub layout (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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). 11 // TODO(rnystrom): Use "package:" import when test.dart supports it (#4968).
12 #import('../htmlescape/lib/htmlescape.dart'); 12 #import('../../htmlescape/lib/htmlescape.dart');
13 13
14 #import('date_format.dart'); 14 #import('date_format.dart');
15 #import('lib/intl_helpers.dart'); 15 #import('src/intl_helpers.dart');
16 16
17 #source('bidi_formatter.dart'); 17 #source('bidi_formatter.dart');
18 #source('bidi_utils.dart'); 18 #source('bidi_utils.dart');
19 19
20 class Intl { 20 class Intl {
21 /** 21 /**
22 * String indicating the locale code with which the message is to be 22 * String indicating the locale code with which the message is to be
23 * formatted (such as en-CA). 23 * formatted (such as en-CA).
24 */ 24 */
25 String _locale; 25 String _locale;
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 /** 214 /**
215 * Initialize the message lookup mechanism. This is for internal use only. 215 * Initialize the message lookup mechanism. This is for internal use only.
216 * User applications should import message_lookup_local.dart and call 216 * User applications should import message_lookup_local.dart and call
217 * initializeMessages 217 * initializeMessages
218 */ 218 */
219 void initializeInternalMessageLookup(Function lookupFunction) { 219 void initializeInternalMessageLookup(Function lookupFunction) {
220 if (_messageLookup is UninitializedLocaleData) { 220 if (_messageLookup is UninitializedLocaleData) {
221 _messageLookup = lookupFunction(); 221 _messageLookup = lookupFunction();
222 } 222 }
223 } 223 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698