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

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

Issue 182443003: Add 'meaning' to Intl.messages (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/intl.dart ('k') | pkg/intl/lib/src/intl_helpers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/lib/message_lookup_by_library.dart
diff --git a/pkg/intl/lib/message_lookup_by_library.dart b/pkg/intl/lib/message_lookup_by_library.dart
index 58e41152614b57d6ccab9895e7e8b457f3f066e9..839b92c0e397718817a2ca3e880397d1864cf474 100644
--- a/pkg/intl/lib/message_lookup_by_library.dart
+++ b/pkg/intl/lib/message_lookup_by_library.dart
@@ -34,7 +34,7 @@ class CompositeMessageLookup {
*/
String lookupMessage(String message_str, [final String desc='',
final Map examples=const {}, String locale,
- String name, List<String> args]) {
+ String name, List<String> args, String meaning]) {
var actualLocale = (locale == null) ? Intl.getCurrentLocale() : locale;
// For this usage, if the locale doesn't exist for messages, just return
// it and we'll fall back to the original version.
@@ -46,7 +46,7 @@ class CompositeMessageLookup {
var messages = availableMessages[verifiedLocale];
if (messages == null) return message_str;
return messages.
- lookupMessage(message_str, desc, examples, locale, name, args);
+ lookupMessage(message_str, desc, examples, locale, name, args, meaning);
}
/**
@@ -96,7 +96,7 @@ abstract class MessageLookupByLibrary {
*/
String lookupMessage(String message_str, [final String desc='',
final Map examples=const {}, String locale,
- String name, List<String> args]) {
+ String name, List<String> args, String meaning]) {
if (name == null) return message_str;
var function = this[name];
return function == null ? message_str : Function.apply(function, args);
« no previous file with comments | « pkg/intl/lib/intl.dart ('k') | pkg/intl/lib/src/intl_helpers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698