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

Unified Diff: pkg/intl/test/message_extraction/sample_with_messages.dart

Issue 18543009: Plurals and Genders (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typo Created 7 years, 6 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/test/message_extraction/part_of_sample_with_messages.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/test/message_extraction/sample_with_messages.dart
diff --git a/pkg/intl/test/message_extraction/sample_with_messages.dart b/pkg/intl/test/message_extraction/sample_with_messages.dart
index a0e334c68c8af36ac95aeb9f83cce9f7d8c4dbd4..6776b10139183cbbe5974f70244952a7e46e9aa3 100644
--- a/pkg/intl/test/message_extraction/sample_with_messages.dart
+++ b/pkg/intl/test/message_extraction/sample_with_messages.dart
@@ -109,14 +109,22 @@ printStuff(Intl locale) {
print(YouveGotMessages.staticMessage());
print(notAlwaysTranslated());
print(originalNotInBMP());
- // TODO(alanknight): Support named arguments.
-// print(thing.namedArgs(thing: 'well...'));
- // TODO(alanknight): Support plurals. Do we need to consider changing
- // the form so as not to have a difficult to validate interpolation
- // in our translation output?
-// print(thing.plurals(1));
-// print(thing.plurals(2));
print(escapable());
+
+ print(thing.plurals(0));
+ print(thing.plurals(1));
+ print(thing.plurals(2));
+ var alice = new Person("Alice", "female");
+ var bob = new Person("Bob", "male");
+ var cat = new Person("cat", null);
+ print(thing.whereTheyWent(alice, "house"));
+ print(thing.whereTheyWent(bob, "house"));
+ print(thing.whereTheyWent(cat, "litter box"));
+ print(thing.nested([alice, bob], "magasin"));
+ print(thing.nested([alice], "magasin"));
+ print(thing.nested([], "magasin"));
+ print(thing.nested([bob, bob], "magasin"));
+ print(thing.nested([alice, alice], "magasin"));
});
}
« no previous file with comments | « pkg/intl/test/message_extraction/part_of_sample_with_messages.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698