Zend Framework
3.0
|
Public Member Functions | |
__construct (I18nTranslatorInterface $translator) | |
__call ($method, array $args) | |
Proxy unknown method calls to underlying translator instance. | |
getTranslator () | |
translate ($message, $textDomain= 'default', $locale=null) | |
Translate a message using the given text domain and locale. | |
translatePlural ($singular, $plural, $number, $textDomain= 'default', $locale=null) | |
Provide a pluralized translation of the given string using the given text domain and locale. | |
Protected Attributes | |
$translator | |
__construct | ( | I18nTranslatorInterface | $translator | ) |
I18nTranslatorInterface | $translator |
__call | ( | $method, | |
array | $args | ||
) |
Proxy unknown method calls to underlying translator instance.
Note: this method is only implemented to keep backwards compatibility with pre-2.3.0 code.
string | $method | |
array | $args |
getTranslator | ( | ) |
translate | ( | $message, | |
$textDomain = 'default' , |
|||
$locale = null |
|||
) |
Translate a message using the given text domain and locale.
string | $message | |
string | $textDomain | |
string | $locale |
Implements TranslatorInterface.
translatePlural | ( | $singular, | |
$plural, | |||
$number, | |||
$textDomain = 'default' , |
|||
$locale = null |
|||
) |
Provide a pluralized translation of the given string using the given text domain and locale.
string | $singular | |
string | $plural | |
string | $number | |
string | $textDomain | |
string | $locale |
Implements TranslatorInterface.
|
protected |