@@ -68,8 +68,8 @@ expose them manually by adding the following lines to your autoload code::
68
68
in the `ICU component `_.
69
69
70
70
Depending on the ICU version compiled with your intl extension, a matching
71
- version of that component needs to be installed. Sounds complicated, but usually
72
- Composer does this for you automatically:
71
+ version of that component needs to be installed. It sounds complicated,
72
+ but usually Composer does this for you automatically:
73
73
74
74
* 1.0.*: when the intl extension is not available
75
75
* 1.1.*: when intl is compiled with ICU 4.0 or higher
@@ -134,14 +134,13 @@ expose them manually by adding the following lines to your autoload code::
134
134
extensively and deploy again. The installation of the dependencies will now
135
135
succeed.
136
136
137
-
138
137
Writing and Reading Resource Bundles
139
138
------------------------------------
140
139
141
- The :phpclass: `ResourceBundle ` class is currently by this component. Instead,
142
- it includes a set of readers and writers for reading and writing arrays (or
143
- array-like objects) from/to resource bundle files. The following classes are
144
- supported:
140
+ The :phpclass: `ResourceBundle ` class is not currently supporting by this component.
141
+ Instead, it includes a set of readers and writers for reading and writing
142
+ arrays (or array-like objects) from/to resource bundle files. The following
143
+ classes are supported:
145
144
146
145
* `TextBundleWriter `_
147
146
* `PhpBundleWriter `_
@@ -156,7 +155,8 @@ skip this section and jump to `Accessing ICU Data`_.
156
155
TextBundleWriter
157
156
~~~~~~~~~~~~~~~~
158
157
159
- Writes an array or an array-like object to a plain text resource bundle. The
158
+ The :class: `Symfony\\ Component\\ Intl\\ ResourceBundle\\ Writer\\ TextBundleWriter `
159
+ writes an array or an array-like object to a plain-text resource bundle. The
160
160
resulting .txt file can be converted to a binary .res file with the
161
161
:class: `Symfony\\ Component\\ Intl\\ ResourceBundle\\ Compiler\\ BundleCompiler `
162
162
class::
@@ -186,7 +186,8 @@ constructor.
186
186
PhpBundleWriter
187
187
~~~~~~~~~~~~~~~
188
188
189
- Writes an array or an array-like object to a .php resource bundle::
189
+ The :class: `Symfony\\ Component\\ Intl\\ ResourceBundle\\ Writer\\ PhpBundleWriter `
190
+ writes an array or an array-like object to a .php resource bundle::
190
191
191
192
use Symfony\Component\Intl\ResourceBundle\Writer\PhpBundleWriter;
192
193
@@ -202,7 +203,8 @@ Writes an array or an array-like object to a .php resource bundle::
202
203
BinaryBundleReader
203
204
~~~~~~~~~~~~~~~~~~
204
205
205
- Reads binary resource bundle files and returns an array or an array-like object.
206
+ The :class: `Symfony\\ Component\\ Intl\\ ResourceBundle\\ Reader\\ BinaryBundleReader `
207
+ reads binary resource bundle files and returns an array or an array-like object.
206
208
This class currently only works with the `intl extension `_ installed::
207
209
208
210
use Symfony\Component\Intl\ResourceBundle\Reader\BinaryBundleReader;
@@ -215,7 +217,8 @@ This class currently only works with the `intl extension`_ installed::
215
217
PhpBundleReader
216
218
~~~~~~~~~~~~~~~
217
219
218
- Reads resource bundles from .php files and returns an array or an array-like
220
+ The :class: `Symfony\\ Component\\ Intl\\ ResourceBundle\\ Reader\\ PhpBundleReader `
221
+ reads resource bundles from .php files and returns an array or an array-like
219
222
object::
220
223
221
224
use Symfony\Component\Intl\ResourceBundle\Reader\PhpBundleReader;
@@ -228,7 +231,8 @@ object::
228
231
BufferedBundleReader
229
232
~~~~~~~~~~~~~~~~~~~~
230
233
231
- Wraps another reader, but keeps the last N reads in a buffer, where N is a
234
+ The :class: `Symfony\\ Component\\ Intl\\ ResourceBundle\\ Reader\\ BufferedBundleReader `
235
+ wraps another reader, but keeps the last N reads in a buffer, where N is a
232
236
buffer size passed to the constructor::
233
237
234
238
use Symfony\Component\Intl\ResourceBundle\Reader\BinaryBundleReader;
@@ -248,7 +252,8 @@ buffer size passed to the constructor::
248
252
StructuredBundleReader
249
253
~~~~~~~~~~~~~~~~~~~~~~
250
254
251
- Wraps another reader and offers a
255
+ The :class: `Symfony\\ Component\\ Intl\\ ResourceBundle\\ Reader\\ StructuredBundleReader `
256
+ wraps another reader and offers a
252
257
:method: `Symfony\\ Component\\ Intl\\ ResourceBundle\\ Reader\\ StructuredBundleReaderInterface::readEntry `
253
258
method for reading an entry of the resource bundle without having to worry
254
259
whether array keys are set or not. If a path cannot be resolved, ``null `` is
@@ -316,8 +321,8 @@ bundle::
316
321
$script = Intl::getLanguageBundle()->getScriptName('Hans');
317
322
// => 'Simplified'
318
323
319
- All methods accept the translation locale as last, optional parameter, which
320
- defaults to the current default locale::
324
+ All methods accept the translation locale as the last, optional parameter,
325
+ which defaults to the current default locale::
321
326
322
327
$languages = Intl::getLanguageBundle()->getLanguageNames('de');
323
328
// => array('ab' => 'Abchasisch', ...)
@@ -337,8 +342,8 @@ The translations of country names can be found in the region bundle::
337
342
$country = Intl::getRegionBundle()->getCountryName('GB');
338
343
// => 'United Kingdom'
339
344
340
- All methods accept the translation locale as last, optional parameter, which
341
- defaults to the current default locale::
345
+ All methods accept the translation locale as the last, optional parameter,
346
+ which defaults to the current default locale::
342
347
343
348
$countries = Intl::getRegionBundle()->getCountryNames('de');
344
349
// => array('AF' => 'Afghanistan', ...)
@@ -358,8 +363,8 @@ The translations of locale names can be found in the locale bundle::
358
363
$locale = Intl::getLocaleBundle()->getLocaleName('zh_Hans_MO');
359
364
// => 'Chinese (Simplified, Macau SAR China)'
360
365
361
- All methods accept the translation locale as last, optional parameter, which
362
- defaults to the current default locale::
366
+ All methods accept the translation locale as the last, optional parameter,
367
+ which defaults to the current default locale::
363
368
364
369
$locales = Intl::getLocaleBundle()->getLocaleNames('de');
365
370
// => array('af' => 'Afrikaans', ...)
@@ -393,13 +398,13 @@ All methods (except for
393
398
:method: `Symfony\\ Component\\ Intl\\ ResourceBundle\\ CurrencyBundleInterface::getFractionDigits `
394
399
and
395
400
:method: `Symfony\\ Component\\ Intl\\ ResourceBundle\\ CurrencyBundleInterface::getRoundingIncrement `)
396
- accept the translation locale as last, optional parameter, which defaults to the
397
- current default locale::
401
+ accept the translation locale as the last, optional parameter, which defaults
402
+ to the current default locale::
398
403
399
404
$currencies = Intl::getCurrencyBundle()->getCurrencyNames('de');
400
405
// => array('AFN' => 'Afghanische Afghani', ...)
401
406
402
- That's all you need to know for now. Have fun at coding!
407
+ That's all you need to know for now. Have fun coding!
403
408
404
409
.. _Packagist : https://packagist.org/packages/symfony/intl
405
410
.. _ICU component : https://packagist.org/packages/symfony/icu
0 commit comments