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

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

Issue 20072002: Allow Intl.plural/gender as the top-level, omitting the Intl.message wrapper and the first layer of… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes from review Created 7 years, 5 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/test/message_extraction/make_hardcoded_translation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/lib/src/intl_message.dart
diff --git a/pkg/intl/lib/src/intl_message.dart b/pkg/intl/lib/src/intl_message.dart
index 812f89b62cd5210f0224cd26e2de3082191c1ca2..ae3179876010680b4b27812bccdf12990b783417 100644
--- a/pkg/intl/lib/src/intl_message.dart
+++ b/pkg/intl/lib/src/intl_message.dart
@@ -391,10 +391,11 @@ abstract class SubMessage extends ComplexMessage {
List<String> get codeAttributeNames;
String expanded([Function transform = _nullTransform]) {
- fullMessageForClause(key) => key + '{' + transform(parent, this[key]) + '}';
+ fullMessageForClause(key) => key + '{' +
+ transform(parent, this[key]).toString() + '}';
var clauses = attributeNames
.where((key) => this[key] != null)
- .map(fullMessageForClause);
+ .map(fullMessageForClause).toList();
return "{$mainArgument,$icuMessageName, ${clauses.join("")}}";
}
« no previous file with comments | « pkg/intl/lib/intl.dart ('k') | pkg/intl/test/message_extraction/make_hardcoded_translation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698