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

Unified Diff: pkg/intl/test/message_extraction/make_hardcoded_translation.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/src/intl_message.dart ('k') | pkg/intl/test/message_extraction/message_extraction_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/test/message_extraction/make_hardcoded_translation.dart
diff --git a/pkg/intl/test/message_extraction/make_hardcoded_translation.dart b/pkg/intl/test/message_extraction/make_hardcoded_translation.dart
index 3e1765448e448e6e902abe03853b1e08cfa0fdb1..1fddfafce69ff41d50ce19a4731184cde133177e 100644
--- a/pkg/intl/test/message_extraction/make_hardcoded_translation.dart
+++ b/pkg/intl/test/message_extraction/make_hardcoded_translation.dart
@@ -84,7 +84,25 @@ var french = {
], null)
]
], null
- ))
+ )),
+ "outerPlural" : writer.write(new Plural.from("n",
+ [
+ ['zero', 'rien'],
+ ['one', 'un'],
+ ['other', 'quelques-uns']
+ ], null)),
+ "outerGender" : writer.write(new Gender.from("g",
+ [
+ ['male', 'homme'],
+ ['female', 'femme'],
+ ['other', 'autre'],
+ ], null)),
+ "nestedOuter" : writer.write ( new Plural.from("number",
+ [
+ ['other', new Gender.from("gen",
+ [["male", "\$number homme"], ["other", "\$number autre"]], null),
+ ]
+ ], null)),
};
/** A list of the German translations that we will produce. */
@@ -137,7 +155,25 @@ var german = {
], null)
]
], null
- ))
+ )),
+ "outerPlural" : writer.write(new Plural.from("n",
+ [
+ ['zero', 'Null'],
+ ['one', 'ein'],
+ ['other', 'einige']
+ ], null)),
+ "outerGender" : writer.write(new Gender.from("g",
+ [
+ ['male', 'Mann'],
+ ['female', 'Frau'],
+ ['other', 'andere'],
+ ], null)),
+ "nestedOuter" : writer.write (new Plural.from("number",
+ [
+ ['other', new Gender.from("gen",
+ [["male", "\$number Mann"], ["other", "\$number andere"]], null),
+ ]
+ ], null)),
};
/** The output directory for translated files. */
« no previous file with comments | « pkg/intl/lib/src/intl_message.dart ('k') | pkg/intl/test/message_extraction/message_extraction_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698