TranslatorHelper
class TranslatorHelper extends Helper
Properties
protected | $charset | | from Helper |
protected | $translator | | |
Methods
Details
setCharset(string $charset)
Sets the default charset.
Parameters
string | $charset | The charset |
string
getCharset()
Gets the default charset.
Return Value
string | The default charset |
Parameters
trans($id, array $parameters = array(), $domain = 'messages', $locale = null)
Parameters
| $id | |
array | $parameters | |
| $domain | |
| $locale | |
See also
transChoice($id, $number, array $parameters = array(), $domain = 'messages', $locale = null)
Parameters
| $id | |
| $number | |
array | $parameters | |
| $domain | |
| $locale | |
See also
string
getName()
Returns the canonical name of this helper.
Return Value
string | The canonical name |