__invoke()
__invoke(string $message, string $textDomain = null, string $locale = null) : string
Translate a message (string)
Parameters
string | $message | string to be translated |
string | $textDomain | the text domain passed to translate method (always null (default)) |
string | $locale | locale passed to translate method normally null since locale is defined in URI |
Throws
- \Zend\I18n\Exception\RuntimeException
when translator has not been set
Returns
string —the translated message