Skip to content

Commit aab93dc

Browse files
committed
Improved the explanation
1 parent 5db96ed commit aab93dc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

reference/forms/types/language.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,13 @@ choice_self_translation
8484

8585
The ``choice_self_translation`` option was introduced in Symfony 5.1.
8686

87+
By default, the choice values are translated into the locale of the application.
88+
For example, when using ``en`` as the locale, you'll get an array like
89+
``[..., 'cs' => 'Czech', ..., 'es' => 'Spanish', ..., 'zh' => 'Chinese']``.
90+
8791
If this option is ``true``, each choice value is translated into its own
88-
language instead of translating all of them into the current application locale
89-
(e.g. ``[..., 'cs' => 'čeština', 'es' => 'español', ..., 'zh' => '中文']``).
92+
language. The resulting array is the same regardless of the application locale:
93+
``[..., 'cs' => 'čeština', ..., 'es' => 'español', ..., 'zh' => '中文']``.
9094

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

0 commit comments

Comments
 (0)