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

Unified Diff: pkg/intl/lib/intl.dart

Issue 11032035: Move Bidi functions into methods to make the docs look better (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/intl/lib/bidi_utils.dart ('k') | pkg/intl/lib/message_lookup_local.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
- }
}
« no previous file with comments | « pkg/intl/lib/bidi_utils.dart ('k') | pkg/intl/lib/message_lookup_local.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698