public function transChoice($message, $number, array $parameters = [], $domain = NULL, $locale = NULL)
{
if ($message instanceof Phrase) {
return $message->translate($this);
}
if ($domain === NULL) {
list($domain, $id) = $this->extractMessageDomain($message);
} else {
$id = $message;
}
try {
$result = parent::transChoice($id, $number, $parameters, $domain, $locale);
} catch (\Exception $e) {
$result = $id;
if ($this->panel !== NULL) {
$this->panel->choiceError($e, $domain);
}
}
if ($result === "") {
$this->logMissingTranslation($message, $domain, $locale);
if ($this->panel !== NULL) {
$this->panel->markUntranslated($message, $domain);
}
$result = strtr($message, $parameters);
}
return $result;
}