| 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('../../pkg/htmlescape/htmlescape.dart'); | 11 #import('dart:web'); |
| 12 | 12 |
| 13 #import('date_format.dart'); | 13 #import('date_format.dart'); |
| 14 #source('intl_message.dart'); | 14 #source('intl_message.dart'); |
| 15 #source('bidi_formatter.dart'); | 15 #source('bidi_formatter.dart'); |
| 16 #source('bidi_utils.dart'); | 16 #source('bidi_utils.dart'); |
| 17 | 17 |
| 18 class Intl { | 18 class Intl { |
| 19 /** | 19 /** |
| 20 * String indicating the locale code with which the message is to be | 20 * String indicating the locale code with which the message is to be |
| 21 * formatted (such as en-CA). | 21 * formatted (such as en-CA). |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 178 |
| 179 /** | 179 /** |
| 180 * Accessor for the current locale. This should always == the default locale, | 180 * Accessor for the current locale. This should always == the default locale, |
| 181 * unless for some reason this gets called inside a message that resets the | 181 * unless for some reason this gets called inside a message that resets the |
| 182 * locale. | 182 * locale. |
| 183 */ | 183 */ |
| 184 static String getCurrentLocale() { | 184 static String getCurrentLocale() { |
| 185 return _locale; | 185 return _locale; |
| 186 } | 186 } |
| 187 } | 187 } |
| OLD | NEW |