package Default

 Methods

Returns translator used in object

getTranslator() : \Zend\I18n\Translator\TranslatorInterface

Returns

\Zend\I18n\Translator\TranslatorInterface

Return the translation text domain

getTranslatorTextDomain() : string

Returns

string

Checks if the object has a translator

hasTranslator() : boolean

Returns

boolean

Returns whether translator is enabled and should be used

isTranslatorEnabled() : boolean

Returns

boolean

Sets translator to use in helper

setTranslator(\Zend\I18n\Translator\TranslatorInterface $translator = null, string $textDomain = null) : mixed

Parameters

$translator

\Zend\I18n\Translator\TranslatorInterface

$textDomain

string

Returns

mixed

Sets whether translator is enabled and should be used

setTranslatorEnabled(boolean $enabled = true) : mixed

Parameters

$enabled

boolean

Returns

mixed

Set translation text domain

setTranslatorTextDomain(string $textDomain = 'default') : mixed

Parameters

$textDomain

string

Returns

mixed

 Properties

 

$translator

$translator : \Zend\I18n\Translator\TranslatorInterface

Default

null
 

$translatorEnabled

$translatorEnabled : boolean

Default

true
 

$translatorTextDomain

$translatorTextDomain : string

Default

'default'