__invoke()
getTranslator()
getTranslatorTextDomain()
getView()
hasTranslator()
isTranslatorEnabled()
setTranslator()
setTranslatorEnabled()
setTranslatorTextDomain()
setView()
$translator
$translatorEnabled
$translatorTextDomain
$view
View helper for translating plural messages.
__invoke(string $singular, string $plural, int $number, string $textDomain, string $locale) : string
string
string
int
string
string
\Zend\I18n\Exception\RuntimeException |
---|
string
getTranslator() : \Zend\I18n\Translator\TranslatorInterface | null
inherited_from | \Zend\I18n\View\Helper\AbstractTranslatorHelper::getTranslator() |
---|
getTranslatorTextDomain() : string
inherited_from | \Zend\I18n\View\Helper\AbstractTranslatorHelper::getTranslatorTextDomain() |
---|
string
getView() : null | \Zend\View\Renderer\RendererInterface
inherited_from | \Zend\View\Helper\AbstractHelper::getView() |
---|---|
inherited_from | \Zend\I18n\View\Helper\AbstractTranslatorHelper::getView() |
hasTranslator() : bool
inherited_from | \Zend\I18n\View\Helper\AbstractTranslatorHelper::hasTranslator() |
---|
bool
isTranslatorEnabled() : bool
inherited_from | \Zend\I18n\View\Helper\AbstractTranslatorHelper::isTranslatorEnabled() |
---|
bool
setTranslator(\Zend\I18n\Translator\TranslatorInterface $translator, string $textDomain) : \Zend\I18n\View\Helper\AbstractTranslatorHelper
inherited_from | \Zend\I18n\View\Helper\AbstractTranslatorHelper::setTranslator() |
---|
\Zend\I18n\Translator\TranslatorInterface
[optional] translator. Default is null, which sets no translator.
string
[optional] text domain Default is null, which skips setTranslatorTextDomain
setTranslatorEnabled(bool $enabled) : \Zend\I18n\View\Helper\AbstractTranslatorHelper
inherited_from | \Zend\I18n\View\Helper\AbstractTranslatorHelper::setTranslatorEnabled() |
---|
bool
setTranslatorTextDomain(string $textDomain) : \Zend\I18n\View\Helper\AbstractTranslatorHelper
inherited_from | \Zend\I18n\View\Helper\AbstractTranslatorHelper::setTranslatorTextDomain() |
---|
string
setView(\Zend\View\Renderer\RendererInterface $view) : \Zend\View\Helper\AbstractHelper
inherited_from | \Zend\View\Helper\AbstractHelper::setView() |
---|---|
inherited_from | \Zend\I18n\View\Helper\AbstractTranslatorHelper::setView() |
$translator : \Zend\I18n\Translator\TranslatorInterface
inherited_from | \Zend\I18n\View\Helper\AbstractTranslatorHelper::$$translator |
---|
$translatorEnabled : bool
inherited_from | \Zend\I18n\View\Helper\AbstractTranslatorHelper::$$translatorEnabled |
---|
$translatorTextDomain : string
inherited_from | \Zend\I18n\View\Helper\AbstractTranslatorHelper::$$translatorTextDomain |
---|
$view : \Zend\View\Renderer\RendererInterface
inherited_from | \Zend\View\Helper\AbstractHelper::$$view |
---|---|
inherited_from | \Zend\I18n\View\Helper\AbstractTranslatorHelper::$$view |