Skip to content

Commit 3afb867

Browse files
committed
minor #5474 typo in components/translation/instruction.rst (beesofts)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #5474). Discussion ---------- typo in components/translation/instruction.rst $translator->setFallbackLocale() should be $translator->setFallbackLocales() Commits ------- fda8ff5 typo in components/translation/instruction.rst
2 parents e8d0d8e + fda8ff5 commit 3afb867

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)