@@ -18,13 +18,14 @@ manually, but then you should just use the ``ChoiceType`` directly.
1818| Rendered as | can be various tags (see :ref: `forms-reference-choice-tags `) |
1919+-------------+------------------------------------------------------------------------+
2020| Options | - `input `_ |
21- | | |
21+ | | - ` intl `_ |
2222+-------------+------------------------------------------------------------------------+
2323| Overridden | - `choices `_ |
2424| options | |
2525+-------------+------------------------------------------------------------------------+
2626| Inherited | from the :doc: `ChoiceType </reference/forms/types/choice >` |
2727| options | |
28+ | | - `choice_translation_domain `_ |
2829| | - `expanded `_ |
2930| | - `multiple `_ |
3031| | - `placeholder `_ |
@@ -69,6 +70,24 @@ on your underlying object. Valid values are:
6970* ``intltimezone `` (an ``\IntlTimeZone `` object)
7071* ``string `` (e.g. ``America/New_York ``)
7172
73+ intl
74+ ~~~~
75+
76+ *type* *: ``boolean `` **default **: ``false ``
77+
78+ If this option is set to ``true ``, the timezone selector will display the
79+ timezones from the `ICU Project `_ via the :doc: `Intl component </components/intl >`
80+ instead of the regular PHP timezones.
81+
82+ Although both sets of timezones are pretty similar, only the ones from the Intl
83+ component can be translated to any language. To do so, set the desired locale
84+ with the ``choice_translation_locale `` option.
85+
86+ .. note ::
87+
88+ The :doc: `Timezone constraint </reference/constraints/Timezone >` can validate
89+ both timezone sets and adapts to the selected set automatically.
90+
7291Overridden Options
7392------------------
7493
@@ -90,6 +109,8 @@ Inherited Options
90109
91110These options inherit from the :doc: `ChoiceType </reference/forms/types/choice >`:
92111
112+ .. include :: /reference/forms/types/options/choice_translation_domain.rst.inc
113+
93114.. include :: /reference/forms/types/options/expanded.rst.inc
94115
95116.. include :: /reference/forms/types/options/multiple.rst.inc
@@ -137,3 +158,5 @@ The actual default value of this option depends on other field options:
137158.. include :: /reference/forms/types/options/mapped.rst.inc
138159
139160.. include :: /reference/forms/types/options/required.rst.inc
161+
162+ .. _`ICU Project` : http://site.icu-project.org/
0 commit comments