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

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

Issue 10692022: Reapply r9192 and 9194, with the change of making locale a public field. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « lib/i18n/date_format.dart ('k') | lib/i18n/intl_message.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 #library('intl');
6
7 #import('dart:web');
8
9 #source('intl_message.dart');
10 #source('date_format.dart');
11 #source('bidi_formatter.dart');
12 #source('bidi_utils.dart');
13
1 /** 14 /**
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file.
5 *
6 * Internationalization object providing access to message formatting objects, 15 * Internationalization object providing access to message formatting objects,
7 * date formatting, parsing, bidirectional text relative to a specific locale. 16 * date formatting, parsing, bidirectional text relative to a specific locale.
8 */ 17 */
9 18
10 #library('Intl');
11
12 #import('intl_message.dart');
13 #import('date_format.dart');
14
15 class Intl { 19 class Intl {
16 20
17 /** 21 /**
18 * 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
19 * formatted (such as en-CA). 23 * formatted (such as en-CA).
20 */ 24 */
21 static String _locale; 25 static String _locale;
22 26
23 IntlMessage intlMsg; 27 IntlMessage intlMsg;
24 28
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 112
109 /** 113 /**
110 * Accessor for the current locale. This should always == the default locale, 114 * Accessor for the current locale. This should always == the default locale,
111 * unless for some reason this gets called inside a message that resets the 115 * unless for some reason this gets called inside a message that resets the
112 * locale. 116 * locale.
113 */ 117 */
114 static String getCurrentLocale() { 118 static String getCurrentLocale() {
115 return _locale; 119 return _locale;
116 } 120 }
117 } 121 }
OLDNEW
« no previous file with comments | « lib/i18n/date_format.dart ('k') | lib/i18n/intl_message.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698