\Translate\I18n\View\HelperTranslate

View helper for translating messages.

Summary

Methods
Properties
Constants
__invoke()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__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