Example #1
0
 /**
  * Put the new choice type translation value in the corresponding localisation file.
  *
  * @param $fallback_locale
  * @param $locale
  * @param $key
  * @param $value
  * @param $number
  * @param $replace
  *
  * @return string
  */
 public function translateChoice($fallback_locale, $locale, $key, $value, $number, $replace)
 {
     $this->translate($fallback_locale, $locale, $key, $value);
     $replace = $replace ?: [];
     echo $this->translator->choice($key, $number, $replace, $locale, false);
 }