Eccube\Application\ApplicationTrait::transChoice PHP Method

transChoice() public method

Translates the given choice message by choosing a translation according to a number.
public transChoice ( string $id, integer $number, array $parameters = [], string $domain = 'messages', string $locale = null ) : string
$id string The message id
$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
return string The translated string
    public function transChoice($id, $number, array $parameters = array(), $domain = 'messages', $locale = null)
    {
        return $this['translator']->transChoice($id, $number, $parameters, $domain, $locale);
    }