| 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 |
| 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 Loading... |
| 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 } |
| OLD | NEW |