Skip to content

Commit 8d7dcb0

Browse files
authored
Merge pull request #8071 from josbeir/patch-1
Fix method name for setting default formatter
2 parents 5209051 + 7669960 commit 8d7dcb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

en/core-libraries/internationalization-and-localization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ It is possible to set the default formatter for all translators created by
566566
CakePHP before they are used for the first time. This does not include manually
567567
created translators using the ``setTranslator()`` and ``config()`` methods::
568568

569-
I18n::defaultFormatter('sprintf');
569+
I18n::setDefaultFormatter('sprintf');
570570

571571
Localizing Dates and Numbers
572572
============================

0 commit comments

Comments
 (0)