TranslatorHelper
class TranslatorHelper extends Helper
TranslatorHelper.
Methods
trans($id, array $parameters = array(), $domain = 'messages', $locale = null)
No description
transChoice($id, $number, array $parameters = array(), $domain = 'messages', $locale = null)
No description
string
getName()
Returns the canonical name of this helper.
Details
in Helper at line line 31
setCharset(string $charset)
Sets the default charset.
in Helper at line line 41
string
getCharset()
Gets the default charset.
at line line 31
__construct(TranslatorInterface $translator)
Constructor.
at line line 39
trans($id, array $parameters = array(), $domain = 'messages', $locale = null)
at line line 47
transChoice($id, $number, array $parameters = array(), $domain = 'messages', $locale = null)
at line line 55
string
getName()
Returns the canonical name of this helper.