-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[translator] use the new fallbacks option. #4834
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ Configuration | |
* :ref:`enabled <profiler.enabled>` | ||
* `translator`_ | ||
* :ref:`enabled <translator.enabled>` | ||
* `fallback`_ | ||
* `fallbacks`_ | ||
* `validation`_ | ||
* `cache`_ | ||
* `enable_annotations`_ | ||
|
@@ -526,10 +526,19 @@ enabled | |
|
||
Whether or not to enable the ``translator`` service in the service container. | ||
|
||
fallback | ||
........ | ||
.. _fallback: | ||
|
||
**type**: ``string`` **default**: ``en`` | ||
fallbacks | ||
......... | ||
|
||
**type**: ``string|array`` **default**: ``array('en')`` | ||
|
||
.. versionadded:: 2.3.25 | ||
The ``fallbacks`` option was introduced in Symfony 2.3.25. Prior | ||
to Symfony 2.3.25, it was called ``fallback`` and only allowed one fallback | ||
language defined as a string. | ||
Please note that you can still use the old ``fallback`` option if you want | ||
define only one fallback. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry @aitboudad. I missed this first. Can you please move the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you explain more ? :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The "type: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done ! |
||
|
||
This option is used when the translation key for the current locale wasn't found. | ||
|
||
|
@@ -676,7 +685,7 @@ Full default Configuration | |
# translator configuration | ||
translator: | ||
enabled: false | ||
fallback: en | ||
fallbacks: [en] | ||
|
||
# validation configuration | ||
validation: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need a label for the old name before the headline:
.. _fallback: