| OLD | NEW |
| 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 | |
| 14 /** | 1 /** |
| 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 * |
| 15 * Internationalization object providing access to message formatting objects, | 6 * Internationalization object providing access to message formatting objects, |
| 16 * date formatting, parsing, bidirectional text relative to a specific locale. | 7 * date formatting, parsing, bidirectional text relative to a specific locale. |
| 17 */ | 8 */ |
| 18 | 9 |
| 10 #library('Intl'); |
| 11 |
| 12 #import('intl_message.dart'); |
| 13 #import('date_format.dart'); |
| 14 |
| 19 class Intl { | 15 class Intl { |
| 20 | 16 |
| 21 /** | 17 /** |
| 22 * String indicating the locale code with which the message is to be | 18 * String indicating the locale code with which the message is to be |
| 23 * formatted (such as en-CA). | 19 * formatted (such as en-CA). |
| 24 */ | 20 */ |
| 25 static String _locale; | 21 static String _locale; |
| 26 | 22 |
| 27 IntlMessage intlMsg; | 23 IntlMessage intlMsg; |
| 28 | 24 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 108 |
| 113 /** | 109 /** |
| 114 * Accessor for the current locale. This should always == the default locale, | 110 * Accessor for the current locale. This should always == the default locale, |
| 115 * unless for some reason this gets called inside a message that resets the | 111 * unless for some reason this gets called inside a message that resets the |
| 116 * locale. | 112 * locale. |
| 117 */ | 113 */ |
| 118 static String getCurrentLocale() { | 114 static String getCurrentLocale() { |
| 119 return _locale; | 115 return _locale; |
| 120 } | 116 } |
| 121 } | 117 } |
| OLD | NEW |