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

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

Issue 17113002: Allow translated messages that have no matching original message (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix a typo in help text 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/lib/generate_localized.dart ('k') | pkg/intl/test/message_extraction/generate_from_json.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/test/message_extraction/extract_to_json.dart
diff --git a/pkg/intl/test/message_extraction/extract_to_json.dart b/pkg/intl/test/message_extraction/extract_to_json.dart
index 5b6f316d453b67e51d0ee172280d9792bbd80692..ce5c907704f8ff188469c7757f1134231384dd96 100644
--- a/pkg/intl/test/message_extraction/extract_to_json.dart
+++ b/pkg/intl/test/message_extraction/extract_to_json.dart
@@ -34,9 +34,8 @@ main() {
parser.addFlag("suppress-warnings", defaultsTo: false,
callback: (x) => suppressWarnings = x);
- void setTargetDir(value) => targetDir = value;
-
- parser.addOption("output-dir", defaultsTo: '.', callback: setTargetDir);
+ parser.addOption("output-dir", defaultsTo: '.',
+ callback: (value) => targetDir = value);
parser.parse(args);
if (args.length == 0) {
print('Usage: extract_to_json [--output-dir=<dir>] [files.dart]');
« no previous file with comments | « pkg/intl/lib/generate_localized.dart ('k') | pkg/intl/test/message_extraction/generate_from_json.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698