package Default

 Methods

Proxy unknown method calls to underlying translator instance

__call(string $method, array $args) : mixed

Note: this method is only implemented to keep backwards compatibility with pre-2.3.0 code.

deprecated

Parameters

$method

string

$args

array

Returns

mixed

__construct()

__construct(\Zend\I18n\Translator\TranslatorInterface $translator) 

Parameters

$translator

\Zend\I18n\Translator\TranslatorInterface

getTranslator()

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

Returns

\Zend\I18n\Translator\TranslatorInterface

Translate a message using the given text domain and locale

translate(string $message, string $textDomain = 'default', string $locale = null) : string
inherited_from \Zend\I18n\Translator\TranslatorInterface::translate()

Parameters

$message

string

$textDomain

string

$locale

string

Returns

string

Provide a pluralized translation of the given string using the given text domain and locale

translatePlural(string $singular, string $plural, string $number, string $textDomain = 'default', string $locale = null) : string
inherited_from \Zend\I18n\Translator\TranslatorInterface::translatePlural()

Parameters

$singular

string

$plural

string

$number

string

$textDomain

string

$locale

string

Returns

string

 Properties

 

$translator

$translator : \Zend\I18n\Translator\TranslatorInterface

Default