OLD | NEW |
1 Intl | 1 Intl |
2 ==== | 2 ==== |
3 | 3 |
4 This package provides internationalization and localization facilities, | 4 This package provides internationalization and localization facilities, |
5 including message translation, plurals and genders, date/number formatting | 5 including message translation, plurals and genders, date/number formatting |
6 and parsing, and bidirectional text. | 6 and parsing, and bidirectional text. |
7 | 7 |
8 ## General | 8 ## General |
9 The most important library is [intl][intl_lib]. It defines the [Intl][Intl] | 9 The most important library is [intl][intl_lib]. It defines the [Intl][Intl] |
10 class, with the default locale and methods for accessing most of the | 10 class, with the default locale and methods for accessing most of the |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 "Hit any key to continue", | 88 "Hit any key to continue", |
89 name: "continueMessage", | 89 name: "continueMessage", |
90 args: [], | 90 args: [], |
91 desc: "Explains that we will not proceed further until " | 91 desc: "Explains that we will not proceed further until " |
92 "the user presses a key"); | 92 "the user presses a key"); |
93 print(continueMessage()); | 93 print(continueMessage()); |
94 | 94 |
95 This provides, in addition to the basic message string, a name, a | 95 This provides, in addition to the basic message string, a name, a |
96 description for translators, the arguments used in the message, and | 96 description for translators, the arguments used in the message, and |
97 examples. The `name` and `args` parameters are required, and must | 97 examples. The `name` and `args` parameters are required, and must |
98 match the name and arguments list of the function. In the future we | 98 match the name (or ClassName_methodName) and arguments list of the |
| 99 function respectively. In the future we |
99 hope to have these provided automatically. | 100 hope to have these provided automatically. |
100 | 101 |
101 This can be run in the program before any translation has been done, | 102 This can be run in the program before any translation has been done, |
102 and will just return the message string. It can also be extracted to a | 103 and will just return the message string. It can also be extracted to a |
103 file and then be made to return a translated version without modifying | 104 file and then be made to return a translated version without modifying |
104 the original program. See "Extracting Messages" below for more | 105 the original program. See "Extracting Messages" below for more |
105 details. | 106 details. |
106 | 107 |
107 The purpose of wrapping the message in a function is to allow it to | 108 The purpose of wrapping the message in a function is to allow it to |
108 have parameters which can be used in the result. The message string is | 109 have parameters which can be used in the result. The message string is |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 [NumberFormat]: https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/
intl/intl.NumberFormat | 313 [NumberFormat]: https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/
intl/intl.NumberFormat |
313 [withLocale]: https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/in
tl/intl.Intl#id_withLocale | 314 [withLocale]: https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/in
tl/intl.Intl#id_withLocale |
314 [defaultLocale]: https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer
/intl/intl.Intl#id_defaultLocale | 315 [defaultLocale]: https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer
/intl/intl.Intl#id_defaultLocale |
315 [Intl.message]: https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/
intl/intl.Intl#id_message | 316 [Intl.message]: https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/
intl/intl.Intl#id_message |
316 [Intl.plural]: https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/i
ntl/intl.Intl#id_plural | 317 [Intl.plural]: https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/i
ntl/intl.Intl#id_plural |
317 [Intl.gender]: https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/i
ntl/intl.Intl#id_gender | 318 [Intl.gender]: https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/i
ntl/intl.Intl#id_gender |
318 [DateTime]: https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart
:core.DateTime | 319 [DateTime]: https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart
:core.DateTime |
319 [BidiFormatter]: https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer
/intl/intl.BidiFormatter | 320 [BidiFormatter]: https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer
/intl/intl.BidiFormatter |
320 [BidiFormatter.RTL]: https://api.dartlang.org/apidocs/channels/stable/dartdoc-vi
ewer/intl/intl.BidiFormatter#id_BidiFormatter-RTL | 321 [BidiFormatter.RTL]: https://api.dartlang.org/apidocs/channels/stable/dartdoc-vi
ewer/intl/intl.BidiFormatter#id_BidiFormatter-RTL |
321 [BidiFormatter.LTR]: https://api.dartlang.org/apidocs/channels/stable/dartdoc-vi
ewer/intl/intl.BidiFormatter#id_BidiFormatter-LTR | 322 [BidiFormatter.LTR]: https://api.dartlang.org/apidocs/channels/stable/dartdoc-vi
ewer/intl/intl.BidiFormatter#id_BidiFormatter-LTR |
OLD | NEW |