| Index: pkg/intl/lib/intl.dart
|
| ===================================================================
|
| --- pkg/intl/lib/intl.dart (revision 13251)
|
| +++ pkg/intl/lib/intl.dart (working copy)
|
| @@ -3,8 +3,16 @@
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| /**
|
| - * Internationalization object providing access to message formatting objects,
|
| - * date formatting, parsing, bidirectional text relative to a specific locale.
|
| + * This library provides internationalization and localization. This includes
|
| + * message formatting and replacement, date and number formatting and parsing,
|
| + * and utilities for working with Bidirectional text.
|
| + *
|
| + * For things that require locale or other data, there are multiple different
|
| + * ways of making that data available, which may require importing different
|
| + * libraries. See the class comments for more details.
|
| + *
|
| + * There is also a simple example application that can be found in the
|
| + * `example/basic` directory.
|
| */
|
| #library('intl');
|
|
|
| @@ -86,7 +94,7 @@
|
| static String message(String message_str, [final String desc='',
|
| final Map examples=const {}, String locale, String name,
|
| List<String> args]) {
|
| - return _messageLookup.lookupMessage(
|
| + return messageLookup.lookupMessage(
|
| message_str, desc, examples, locale, name, args);
|
| }
|
|
|
| @@ -203,23 +211,4 @@
|
| if (_defaultLocale == null) _defaultLocale = systemLocale;
|
| return _defaultLocale;
|
| }
|
| -}
|
| -
|
| -/**
|
| - * The internal mechanism for looking up messages. We expect this to be set
|
| - * by the implementing package so that we're not dependent on its
|
| - * implementation.
|
| - */
|
| -var _messageLookup = const
|
| - UninitializedLocaleData('initializeMessages(<locale>)');
|
| -
|
| -/**
|
| - * Initialize the message lookup mechanism. This is for internal use only.
|
| - * User applications should import message_lookup_local.dart and call
|
| - * initializeMessages
|
| - */
|
| -void initializeInternalMessageLookup(Function lookupFunction) {
|
| - if (_messageLookup is UninitializedLocaleData) {
|
| - _messageLookup = lookupFunction();
|
| - }
|
| }
|
|
|