Interpolates the given message.
Parameters are replaced in the message in the same manner that {@link strtr()} uses.
Example usage:
$translator = new DefaultTranslator();
echo $translator->trans( 'This is a {{ var }}.', array('{{ var }}' => 'donkey') );
// -> This is a donkey.
string $id The message id:
array $parameters An array of parameters for the message:
string $domain Ignored:
string $locale Ignored:
string The interpolated string
Overrides TranslatorInterface::trans
public function trans($id, array $parameters = array(), $domain = null, $locale = null) {
return strtr($id, $parameters);
}