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

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

Issue 183763026: Allow a single translation to be from multiple differently-named sources (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Re-upload 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
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 ede8896902a656090f88c08f9b346773b7480011..344075bda136a41094f6529553d89105e5a1488c 100644
--- a/pkg/intl/test/message_extraction/sample_with_messages.dart
+++ b/pkg/intl/test/message_extraction/sample_with_messages.dart
@@ -110,6 +110,14 @@ nestedOuter(number, gen) => Intl.plural(number,
name: 'nestedOuter',
args: [number, gen]);
+sameContentsDifferentName() => Intl.message("Hello World",
+ name: "sameContentsDifferentName",
+ desc: "One of two messages with the same contents, but different names");
+
+differentNameSameContents() => Intl.message("Hello World",
+ name: "differentNameSameContents",
+ desc: "One of two messages with the same contents, but different names");
+
printStuff(Intl locale) {
// Use a name that's not a literal so this will get skipped. Then we have
@@ -193,6 +201,8 @@ printStuff(Intl locale) {
printOut(nestedSelect("CDN", 2));
printOut(pluralThatFailsParsing(1));
printOut(pluralThatFailsParsing(2));
+ printOut(differentNameSameContents());
+ printOut(sameContentsDifferentName());
});
}

Powered by Google App Engine
This is Rietveld 408576698