ChoiceMessageFormatterInterface
interface ChoiceMessageFormatterInterface
Methods
string | choiceFormat(string $message, int $number, string $locale, array $parameters = array()) Formats a localized message pattern with given arguments. |
Details
string choiceFormat(string $message, int $number, string $locale, array $parameters = array())
Formats a localized message pattern with given arguments.
Parameters
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 |
Return Value
string |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Translation/Formatter/ChoiceMessageFormatterInterface.html