Translates the given message.
@api
string $id The message id (may also be an object that can be cast to string):
array $parameters An array of parameters for the message:
string $domain The domain for the message:
string $locale The locale:
string The translated string
public function trans($id, array $parameters = array(), $domain = null, $locale = null);