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

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

Issue 12733003: Adds facilities for extracting Intl.message calls and generating code from translations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes from review comments, also made tests more robust, removed scheduled_test dependency Created 7 years, 9 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/src/intl_helpers.dart
diff --git a/pkg/intl/lib/src/intl_helpers.dart b/pkg/intl/lib/src/intl_helpers.dart
index d431584fdea98f2384c5aa1fe6e7279e483600d9..ee9fdb2821a1f565e6ff1240c11a19218b989a50 100644
--- a/pkg/intl/lib/src/intl_helpers.dart
+++ b/pkg/intl/lib/src/intl_helpers.dart
@@ -24,7 +24,13 @@ class UninitializedLocaleData<F> {
operator [](String key) =>
(key == 'en_US') ? fallbackData : _throwException();
+
+ String lookupMessage(String message_str, [final String desc='',
+ final Map examples=const {}, String locale,
+ String name, List<String> args]) => _throwException();
+
List get keys => _throwException();
+
bool containsKey(String key) => (key == 'en_US') ? true : _throwException();
_throwException() {
@@ -56,7 +62,7 @@ var messageLookup = const
/**
* Initialize the message lookup mechanism. This is for internal use only.
- * User applications should import `message_lookup_local.dart` and call
+ * User applications should import `message_lookup_by_library.dart` and call
* `initializeMessages`
*/
void initializeInternalMessageLookup(Function lookupFunction) {

Powered by Google App Engine
This is Rietveld 408576698