@@ -18,13 +18,14 @@ manually, but then you should just use the ``ChoiceType`` directly.
18
18
| Rendered as | can be various tags (see :ref: `forms-reference-choice-tags `) |
19
19
+-------------+------------------------------------------------------------------------+
20
20
| Options | - `input `_ |
21
- | | |
21
+ | | - ` intl `_ |
22
22
+-------------+------------------------------------------------------------------------+
23
23
| Overridden | - `choices `_ |
24
24
| options | |
25
25
+-------------+------------------------------------------------------------------------+
26
26
| Inherited | from the :doc: `ChoiceType </reference/forms/types/choice >` |
27
27
| options | |
28
+ | | - `choice_translation_domain `_ |
28
29
| | - `expanded `_ |
29
30
| | - `multiple `_ |
30
31
| | - `placeholder `_ |
@@ -69,6 +70,24 @@ on your underlying object. Valid values are:
69
70
* ``intltimezone `` (an ``\IntlTimeZone `` object)
70
71
* ``string `` (e.g. ``America/New_York ``)
71
72
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
+
72
91
Overridden Options
73
92
------------------
74
93
@@ -90,6 +109,8 @@ Inherited Options
90
109
91
110
These options inherit from the :doc: `ChoiceType </reference/forms/types/choice >`:
92
111
112
+ .. include :: /reference/forms/types/options/choice_translation_domain.rst.inc
113
+
93
114
.. include :: /reference/forms/types/options/expanded.rst.inc
94
115
95
116
.. include :: /reference/forms/types/options/multiple.rst.inc
@@ -137,3 +158,5 @@ The actual default value of this option depends on other field options:
137
158
.. include :: /reference/forms/types/options/mapped.rst.inc
138
159
139
160
.. include :: /reference/forms/types/options/required.rst.inc
161
+
162
+ .. _`ICU Project` : http://site.icu-project.org/
0 commit comments