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

Side by Side Diff: lib/i18n/intl_message.dart

Issue 10536105: Make Intl.message static (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 * a browser). The values of [desc] and [examples] *must* be 69 * a browser). The values of [desc] and [examples] *must* be
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
80 } 79 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698