class MessageFormatter implements MessageFormatterInterface, ChoiceMessageFormatterInterface
__construct(MessageSelector $selector = null) | ||
string | format(string $message, string $locale, array $parameters = array()) Formats a localized message pattern with given arguments. | |
string | choiceFormat(string $message, int $number, string $locale, array $parameters = array()) Formats a localized message pattern with given arguments. |
MessageSelector | $selector | The message selector for pluralization |
Formats a localized message pattern with given arguments.
string | $message | The message (may also be an object that can be cast to string) |
string | $locale | The message locale |
array | $parameters | An array of parameters for the message |
string |
Formats a localized message pattern with given arguments.
string | $message | The message (may also be an object that can be cast to string) |
int | $number | The number to use to find the indice of the message |
string | $locale | The message locale |
array | $parameters | An array of parameters for the message |
string |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Translation/Formatter/MessageFormatter.html