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

Side by Side Diff: pkg/intl/intl.dart

Issue 10916128: Clean up Intl for language changes (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « pkg/intl/date_format.dart ('k') | pkg/intl/lib/date_format_field.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * Internationalization object providing access to message formatting objects, 6 * Internationalization object providing access to message formatting objects,
7 * date formatting, parsing, bidirectional text relative to a specific locale. 7 * date formatting, parsing, bidirectional text relative to a specific locale.
8 */ 8 */
9 #library('intl'); 9 #library('intl');
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 */ 65 */
66 static String message(String message_str, [final String desc='', 66 static String message(String message_str, [final String desc='',
67 final Map examples=const {}, String locale='']) { 67 final Map examples=const {}, String locale='']) {
68 return message_str; 68 return message_str;
69 } 69 }
70 70
71 /** 71 /**
72 * Return the locale for this instance. If none was set, the locale will 72 * Return the locale for this instance. If none was set, the locale will
73 * be the default. 73 * be the default.
74 */ 74 */
75 String get locale() => _locale; 75 String get locale => _locale;
76 76
77 /** 77 /**
78 * Return true if the locale exists, or if it is null. The null case 78 * Return true if the locale exists, or if it is null. The null case
79 * is interpreted to mean that we use the default locale. 79 * is interpreted to mean that we use the default locale.
80 */ 80 */
81 static bool _localeExists(localeName) { 81 static bool _localeExists(localeName) {
82 return DateFormat.localeExists(localeName); 82 return DateFormat.localeExists(localeName);
83 } 83 }
84 84
85 /** 85 /**
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 /** 179 /**
180 * Accessor for the current locale. This should always == the default locale, 180 * Accessor for the current locale. This should always == the default locale,
181 * unless for some reason this gets called inside a message that resets the 181 * unless for some reason this gets called inside a message that resets the
182 * locale. 182 * locale.
183 */ 183 */
184 static String getCurrentLocale() { 184 static String getCurrentLocale() {
185 return _locale; 185 return _locale;
186 } 186 }
187 } 187 }
OLDNEW
« no previous file with comments | « pkg/intl/date_format.dart ('k') | pkg/intl/lib/date_format_field.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698