-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #5906 Added documentation for choice_translation_domain optio…
…n (peterrehm) This PR was merged into the 2.7 branch. Discussion ---------- Added documentation for choice_translation_domain option | Q | A | ------------- | --- | Doc fix? | no | New docs? | yes #13651 | Applies to | Symfony 2.7+ | Fixed tickets | - Commits ------- 43f4125 Added documentation for choice_translation_domain option
- Loading branch information
Showing
3 changed files
with
46 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
reference/forms/types/options/choice_translation_domain.rst.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
choice_translation_domain | ||
~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. versionadded:: 2.7 | ||
The ``choice_translation_domain`` option was introduced in Symfony 2.7. | ||
|
||
**type**: ``string``, ``boolean`` or ``null`` | ||
|
||
This option determines if the choice values should be translated and in which | ||
translation domain. | ||
|
||
The values of the ``choice_translation_domain`` option can be ``true`` (reuse the current | ||
translation domain), ``false`` (disable translation), ``null`` (uses the parent translation | ||
domain or the default domain) or a string which represents the exact translation | ||
domain to use. |