string
trans(string $id, array $parameters = array(), string|null $domain = null, string|null $locale = null)
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.
Parameters string $id The message id (may also be an object that can be ca