You are here

public function Translator::trans in Plug 7

@api

Overrides TranslatorInterface::trans

File

lib/Symfony/translation/Translator.php, line 223

Class

Translator
Translator.

Namespace

Symfony\Component\Translation

Code

public function trans($id, array $parameters = array(), $domain = null, $locale = null) {
  if (null === $domain) {
    $domain = 'messages';
  }
  return strtr($this
    ->getCatalogue($locale)
    ->get((string) $id, $domain), $parameters);
}