Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4c28e1f

Browse files
Minor changes
1 parent 0cc4ee8 commit 4c28e1f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

reference/constraints/Locale.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ Locale
33

44
Validates that a value is a valid locale.
55

6-
The "value" for each locale is any of `ICU format locale IDs`. By instance the two
7-
letter `ISO 639-1`_ *language* code (e.g. ``fr``), or the language code followed
8-
by an underscore (``_``), then the `ISO 3166-1 alpha-2`_ *country* code (e.g. ``fr_FR``
9-
for French/France).
6+
The "value" for each locale is any of `ICU format locale IDs`_. For example, the
7+
two letter `ISO 639-1`_ *language* code (e.g. ``fr``), or the language code
8+
followed by an underscore (``_``) and the `ISO 3166-1 alpha-2`_ *country* code
9+
(e.g. ``fr_FR`` for French/France).
1010

1111
+----------------+------------------------------------------------------------------------+
1212
| Applies to | :ref:`property or method <validation-property-target>` |
@@ -103,12 +103,13 @@ canonicalize
103103

104104
.. versionadded:: 4.1
105105
Using this option with value ``false`` was deprecated in Symfony 4.1 and it
106-
will throw an exception in Symfony 5.0, use `true` instead.
106+
  will throw an exception in Symfony 5.0. Use ``true`` instead.
107107

108108
If true, the :phpmethod:`Locale::canonicalize` method will be applied before checking
109109
the validity of the given locale (e.g. ``FR-fr.utf8`` is transformed into ``fr_FR``
110110
).
111111

112+
.. _`ICU format locale IDs`: http://userguide.icu-project.org/locale
112113
.. _`ISO 639-1`: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
113114
.. _`ISO 3166-1 alpha-2`: https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes
114115
.. _`ICU format locale IDs`: http://userguide.icu-project.org/locale#TOC-Canonicalization

0 commit comments

Comments
 (0)