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

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

Issue 22286013: Add support for Intl.select (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes from review Created 7 years, 4 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 6ace5e0c6f164f3f92e4d8a51a67977141ee4d45..dd907dea789c7414bb0eb211b42fbe424a116407 100644
--- a/pkg/intl/test/message_extraction/make_hardcoded_translation.dart
+++ b/pkg/intl/test/message_extraction/make_hardcoded_translation.dart
@@ -103,6 +103,21 @@ var french = {
[["male", "\$number homme"], ["other", "\$number autre"]], null),
]
], null)),
+ "outerSelect" : writer.write(new Select.from("currency",
+ [
+ ['CDN', '\$amount dollars Canadiens'],
+ ['other', '\$amount certaine devise ou autre.'],
+ ], null)),
+ "nestedSelect" : writer.write(new Select.from("currency",
+ [
+ ['CDN', new Plural.from('amount',
+ [
+ ["other", '\$amount dollars Canadiens'],
+ ["one", '\$amount dollar Canadien'],
+ ], null)
+ ],
+ ['other', 'N''importe quoi'],
+ ], null)),
};
/** A list of the German translations that we will produce. */
@@ -174,6 +189,21 @@ var german = {
[["male", "\$number Mann"], ["other", "\$number andere"]], null),
]
], null)),
+ "outerSelect" : writer.write(new Select.from("currency",
+ [
+ ['CDN', '\$amount Kanadischen dollar'],
+ ['other', '\$amount einige Währung oder anderen.'],
+ ], null)),
+ "nestedSelect" : writer.write(new Select.from("currency",
+ [
+ ['CDN', new Plural.from('amount',
+ [
+ ["other", '\$amount Kanadischen dollar'],
+ ["one", '\$amount Kanadischer dollar'],
+ ], null)
+ ],
+ ['other', 'whatever'],
+ ], 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