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

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
Index: pkg/intl/lib/intl.dart
===================================================================
--- pkg/intl/lib/intl.dart (revision 13199)
+++ pkg/intl/lib/intl.dart (working copy)
@@ -86,7 +86,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 +203,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();
- }
}

Powered by Google App Engine
This is Rietveld 408576698