@@ -6,12 +6,11 @@ The Intl Component
6
6
==================
7
7
8
8
This component provides access to the localization data of the `ICU library `_.
9
- It also provides a PHP replacement layer for the C `intl extension `_.
10
9
11
10
.. caution ::
12
11
13
12
The replacement layer is limited to the ``en `` locale. If you want to use
14
- other locales, you should `install the intl extension `_. There is no conflict
13
+ other locales, you should `install the intl extension `_. There is no conflict
15
14
between the two because, even if you use the extension, this package can still
16
15
be useful to access the ICU data.
17
16
@@ -30,30 +29,6 @@ Installation
30
29
31
30
.. include :: /components/require_autoload.rst.inc
32
31
33
- If you install the component via Composer, the following classes and functions
34
- of the intl extension will be automatically provided if the intl extension is
35
- not loaded:
36
-
37
- * :phpclass: `Collator `
38
- * :phpclass: `IntlDateFormatter `
39
- * :phpclass: `Locale `
40
- * :phpclass: `NumberFormatter `
41
- * :phpfunction: `intl_error_name `
42
- * :phpfunction: `intl_is_failure `
43
- * :phpfunction: `intl_get_error_code `
44
- * :phpfunction: `intl_get_error_message `
45
-
46
- When the intl extension is not available, the following classes are used to
47
- replace the intl classes:
48
-
49
- * :class: `Symfony\\ Component\\ Intl\\ Collator\\ Collator `
50
- * :class: `Symfony\\ Component\\ Intl\\ DateFormatter\\ IntlDateFormatter `
51
- * :class: `Symfony\\ Component\\ Intl\\ Locale\\ Locale `
52
- * :class: `Symfony\\ Component\\ Intl\\ NumberFormatter\\ NumberFormatter `
53
- * :class: `Symfony\\ Component\\ Intl\\ Globals\\ IntlGlobals `
54
-
55
- Composer automatically exposes these classes in the global namespace.
56
-
57
32
Accessing ICU Data
58
33
------------------
59
34
@@ -211,9 +186,9 @@ Locales
211
186
~~~~~~~
212
187
213
188
A locale is the combination of a language, a region and some parameters that
214
- define the interface preferences of the user. For example, "Chinese" is the
215
- language and ``zh_Hans_MO `` is the locale for "Chinese" (language) + "Simplified"
216
- (script) + "Macau SAR China" (region). The ``Locales `` class provides access to
189
+ define the interface preferences of the user. For example, "Chinese" is the
190
+ language and ``zh_Hans_MO `` is the locale for "Chinese" (language) + "Simplified"
191
+ (script) + "Macau SAR China" (region). The ``Locales `` class provides access to
217
192
the name of all locales::
218
193
219
194
use Symfony\Component\Intl\Locales;
@@ -375,7 +350,6 @@ Learn more
375
350
/reference/forms/types/locale
376
351
/reference/forms/types/timezone
377
352
378
- .. _intl extension : https://www.php.net/manual/en/book.intl.php
379
353
.. _install the intl extension : https://www.php.net/manual/en/intl.setup.php
380
354
.. _ICU library : http://site.icu-project.org/
381
355
.. _`Unicode ISO 15924 Registry` : https://www.unicode.org/iso15924/iso15924-codes.html
0 commit comments