Skip to content

Commit fda8ff5

Browse files
beesoftsxabbuh
authored andcommitted
typo in components/translation/instruction.rst
$translator->setFallbackLocale() should be $translator->setFallbackLocales()
1 parent e8d0d8e commit fda8ff5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/translation/introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ example, assume you're trying to translate into the ``fr_FR`` locale:
170170
fallback locales set explicitly on the translator.
171171

172172
For (3), the fallback locales can be set by calling
173-
:method:`Symfony\\Component\\Translation\\Translator::setFallbackLocale`::
173+
:method:`Symfony\\Component\\Translation\\Translator::setFallbackLocales`::
174174

175175
// ...
176-
$translator->setFallbackLocale(array('en'));
176+
$translator->setFallbackLocales(array('en'));
177177

178178
.. _using-message-domains:
179179

0 commit comments

Comments
 (0)