Example #1
0
 /**
  * Provide a pluralized translation of the given string using the given text domain and locale
  *
  * @param string $singular
  * @param string $plural
  * @param string $number
  * @param string $textDomain
  * @param string $locale
  * @return string
  */
 public function translatePlural($singular, $plural, $number, $textDomain = 'default', $locale = null)
 {
     return $this->translator->translatePlural($singular, $plural, $number, $textDomain, $locale);
 }
 public function transPlural($singular, $plural, $number, array $placeholders = [], $textDomain = 'default', $locale = null)
 {
     return strtr($this->translator->translatePlural($singular, $plural, $number, $textDomain, $locale), $placeholders);
 }