| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 * Message/plural format library with locale support. | 6 * Message/plural format library with locale support. |
| 7 * | 7 * |
| 8 * | 8 * |
| 9 * _message example: | 9 * _message example: |
| 10 * '''I see ${Intl.plural(num_people, | 10 * '''I see ${Intl.plural(num_people, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 * simple Strings available at compile time: no String interpolation or | 70 * simple Strings available at compile time: no String interpolation or |
| 71 * concatenation. | 71 * concatenation. |
| 72 */ | 72 */ |
| 73 IntlMessage(this._message, [final String desc='', final Map examples=const {}, | 73 IntlMessage(this._message, [final String desc='', final Map examples=const {}, |
| 74 final String locale='']) { | 74 final String locale='']) { |
| 75 this._messageDescription = desc; | 75 this._messageDescription = desc; |
| 76 this._messageExamples = examples; | 76 this._messageExamples = examples; |
| 77 this._languageCode = locale; | 77 this._languageCode = locale; |
| 78 } | 78 } |
| 79 | 79 |
| 80 /** |
| 81 * Return an internationalized message. |
| 82 */ |
| 83 String format() => _message; |
| 80 } | 84 } |
| OLD | NEW |