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

Side by Side Diff: pkg/intl/test/message_extraction/sample_with_messages.dart

Issue 22284003: pkg: analysis aided cleanup (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nits 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * This is a program with various [Intl.message] messages. It just prints 6 * This is a program with various [Intl.message] messages. It just prints
7 * all of them, and is used for testing of message extraction, translation, 7 * all of them, and is used for testing of message extraction, translation,
8 * and code generation. 8 * and code generation.
9 */ 9 */
10 library sample; 10 library sample;
11 11
12 import "package:intl/intl.dart"; 12 import "package:intl/intl.dart";
13 import "package:intl/message_lookup_by_library.dart";
14 import "dart:async";
15 import "package:intl/src/intl_helpers.dart";
16 import "foo_messages_all.dart"; 13 import "foo_messages_all.dart";
17 14
18 part 'part_of_sample_with_messages.dart'; 15 part 'part_of_sample_with_messages.dart';
19 16
20 message1() => Intl.message("This is a message", name: 'message1', desc: 'foo' ); 17 message1() => Intl.message("This is a message", name: 'message1', desc: 'foo' );
21 18
22 message2(x) => Intl.message("Another message with parameter $x", 19 message2(x) => Intl.message("Another message with parameter $x",
23 name: 'message2', desc: 'Description 2', args: [x]); 20 name: 'message2', desc: 'Description 2', args: [x]);
24 21
25 // A string with multiple adjacent strings concatenated together, verify 22 // A string with multiple adjacent strings concatenated together, verify
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 var localeToUse = 'en_US'; 151 var localeToUse = 'en_US';
155 152
156 main() { 153 main() {
157 var fr = new Intl("fr"); 154 var fr = new Intl("fr");
158 var english = new Intl("en_US"); 155 var english = new Intl("en_US");
159 var de = new Intl("de_DE"); 156 var de = new Intl("de_DE");
160 initializeMessages(fr.locale).then((_) => printStuff(fr)); 157 initializeMessages(fr.locale).then((_) => printStuff(fr));
161 initializeMessages(de.locale).then((_) => printStuff(de)); 158 initializeMessages(de.locale).then((_) => printStuff(de));
162 printStuff(english); 159 printStuff(english);
163 } 160 }
OLDNEW
« no previous file with comments | « pkg/intl/test/message_extraction/generate_from_json.dart ('k') | pkg/intl/test/number_format_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698