Cake\Chronos\Translator::plural PHP Method

plural() public method

Get a plural message.
public plural ( string $key, string $count, array $vars = [] ) : string
$key string The key to use.
$count string The number of items in the translation.
$vars array Additional context variables.
return string The translated message or ''.
    public function plural($key, $count, array $vars = [])
    {
        if ($count == 1) {
            return $this->singular($key, $vars);
        }
        return $this->singular($key . '_plural', ['count' => $count] + $vars);
    }