Skip to content

[Form] Changed the ISO Code and example for LanguageType #12463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion reference/forms/types/country.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,21 @@ the option manually, but then you should just use the ``ChoiceType`` directly.
Field Options
-------------

.. include:: /reference/forms/types/options/alpha3.rst.inc
alpha3
~~~~~~

**type**: ``boolean`` **default**: ``false``

.. versionadded:: 4.4

The ``alpha3`` option was introduced in Symfony 4.4.

If this option is ``true``, the choice values use the `ISO 3166-1 alpha-3`_
three-letter codes (e.g. New Zealand = ``NZL``) instead of the default
`ISO 3166-1 alpha-2`_ two-letter codes (e.g. New Zealand = ``NZ``).

.. _`ISO 3166-1 alpha-2`: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
.. _`ISO 3166-1 alpha-3`: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3

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

Expand Down
16 changes: 15 additions & 1 deletion reference/forms/types/language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,21 @@ manually, but then you should just use the ``ChoiceType`` directly.
Field Options
-------------

.. include:: /reference/forms/types/options/alpha3.rst.inc
alpha3
~~~~~~

**type**: ``boolean`` **default**: ``false``

.. versionadded:: 4.4

The ``alpha3`` option was introduced in Symfony 4.4.

If this option is ``true``, the choice values use the `ISO 639-2 alpha-3`_
three-letter codes (e.g. French = ``fra``) instead of the default
`ISO 639-1 alpha-2`_ two-letter codes (e.g. French = ``fr``).

.. _`ISO 639-1 alpha-2`: https://en.wikipedia.org/wiki/ISO_639-1
.. _`ISO 639-2 alpha-3`: https://en.wikipedia.org/wiki/ISO_639-2

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

Expand Down
15 changes: 0 additions & 15 deletions reference/forms/types/options/alpha3.rst.inc

This file was deleted.