public function _n($textSingular, $textPlural, $number, $replacements = null, $locale = null)
    {
        if (!$locale) {
            $locale = $this->getLocale();
        }

        if ($this->translator !== null) {
            $text = $this->translator->translatePlurals($textSingular, $textPlural, $number, $locale);
        } else {
            $text = $number == 1 ? $textSingular : $textPlural;
        }

        return $this->replace($text, $replacements);
    }