Skip to content

Commit 3eb8008

Browse files
committed
minor #12463 [Form] Changed the ISO Code and example for LanguageType (creiner)
This PR was merged into the 4.4 branch. Discussion ---------- [Form] Changed the ISO Code and example for LanguageType As discussed in the previous PR here: #12441 Commits ------- 4b76e73 Changed the ISO Code and example for LanguageType
2 parents b4c79d7 + 4b76e73 commit 3eb8008

File tree

3 files changed

+30
-17
lines changed

3 files changed

+30
-17
lines changed

reference/forms/types/country.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,21 @@ the option manually, but then you should just use the ``ChoiceType`` directly.
6363
Field Options
6464
-------------
6565

66-
.. include:: /reference/forms/types/options/alpha3.rst.inc
66+
alpha3
67+
~~~~~~
68+
69+
**type**: ``boolean`` **default**: ``false``
70+
71+
.. versionadded:: 4.4
72+
73+
The ``alpha3`` option was introduced in Symfony 4.4.
74+
75+
If this option is ``true``, the choice values use the `ISO 3166-1 alpha-3`_
76+
three-letter codes (e.g. New Zealand = ``NZL``) instead of the default
77+
`ISO 3166-1 alpha-2`_ two-letter codes (e.g. New Zealand = ``NZ``).
78+
79+
.. _`ISO 3166-1 alpha-2`: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
80+
.. _`ISO 3166-1 alpha-3`: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
6781

6882
.. include:: /reference/forms/types/options/choice_translation_locale.rst.inc
6983

reference/forms/types/language.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,21 @@ manually, but then you should just use the ``ChoiceType`` directly.
6565
Field Options
6666
-------------
6767

68-
.. include:: /reference/forms/types/options/alpha3.rst.inc
68+
alpha3
69+
~~~~~~
70+
71+
**type**: ``boolean`` **default**: ``false``
72+
73+
.. versionadded:: 4.4
74+
75+
The ``alpha3`` option was introduced in Symfony 4.4.
76+
77+
If this option is ``true``, the choice values use the `ISO 639-2 alpha-3`_
78+
three-letter codes (e.g. French = ``fra``) instead of the default
79+
`ISO 639-1 alpha-2`_ two-letter codes (e.g. French = ``fr``).
80+
81+
.. _`ISO 639-1 alpha-2`: https://en.wikipedia.org/wiki/ISO_639-1
82+
.. _`ISO 639-2 alpha-3`: https://en.wikipedia.org/wiki/ISO_639-2
6983

7084
.. include:: /reference/forms/types/options/choice_translation_locale.rst.inc
7185

reference/forms/types/options/alpha3.rst.inc

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)