OLD | NEW |
1 #!/usr/bin/env dart | 1 #!/usr/bin/env dart |
2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
3 // for details. All rights reserved. Use of this source code is governed by a | 3 // for details. All rights reserved. Use of this source code is governed by a |
4 // BSD-style license that can be found in the LICENSE file. | 4 // BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 /** | 6 /** |
7 * A main program that takes as input a source Dart file and a number | 7 * A main program that takes as input a source Dart file and a number |
8 * of ARB files representing translations of messages from the corresponding | 8 * of ARB files representing translations of messages from the corresponding |
9 * Dart file. See extract_to_arb.dart and make_hardcoded_translation.dart. | 9 * Dart file. See extract_to_arb.dart and make_hardcoded_translation.dart. |
10 * | 10 * |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 super(name, translated); | 130 super(name, translated); |
131 | 131 |
132 List<MainMessage> get originalMessages => (super.originalMessages == null) ? | 132 List<MainMessage> get originalMessages => (super.originalMessages == null) ? |
133 _findOriginals() : super.originalMessages; | 133 _findOriginals() : super.originalMessages; |
134 | 134 |
135 // We know that our [id] is the name of the message, which is used as the | 135 // We know that our [id] is the name of the message, which is used as the |
136 //key in [messages]. | 136 //key in [messages]. |
137 List<MainMessage> _findOriginals() => originalMessages = messages[id]; | 137 List<MainMessage> _findOriginals() => originalMessages = messages[id]; |
138 } | 138 } |
139 | 139 |
140 final pluralAndGenderParser = new ICUParser().message; | 140 final pluralAndGenderParser = new IcuParser().message; |
141 final plainParser = new ICUParser().nonIcuMessage; | 141 final plainParser = new IcuParser().nonIcuMessage; |
OLD | NEW |