Symfony\Component\Translation\TranslatorInterface::transChoice
Translates the given choice message by choosing a translation according to a number.
Signature
public function transChoice(string
$id,
[integer
$number = null,
[array
$parameters = null,
[string
$domain = null,
[string
$locale = null]]]] )
Parameters
$id
—
string
- The message id (may also be an object that can be cast to string)
$number
—
integer
- The number to use to find the indice of the message
$parameters
—
array
- An array of parameters for the message
$domain
—
string
- The domain for the message
$locale
—
string
- The locale
Returns
- string
- The translated string