Zend Framework
1.12
|
Public Member Functions | |
__construct ($translate=null) | |
Constructor for manually handling. | |
translate ($messageid=null) | |
Translate a message You can give multiple params or an array of params. | |
setTranslator ($translate) | |
Sets a translation Adapter for translation. | |
getTranslator () | |
Retrieve translation object. | |
setLocale ($locale=null) | |
Set's an new locale for all further translations. | |
getLocale () | |
Returns the set locale for translations. | |
![]() | |
setView (Zend_View_Interface $view) | |
Set the View object. | |
direct () | |
Strategy pattern: currently unutilized. | |
Protected Attributes | |
$_translator | |
Additional Inherited Members | |
![]() | |
$view = null | |
__construct | ( | $translate = null | ) |
Constructor for manually handling.
Zend_Translate | Zend_Translate_Adapter | $translate | Instance of Zend_Translate |
getLocale | ( | ) |
Returns the set locale for translations.
Zend_View_Exception | When no Zend_Translate instance was set |
getTranslator | ( | ) |
Retrieve translation object.
setLocale | ( | $locale = null | ) |
Set's an new locale for all further translations.
string | Zend_Locale | $locale | New locale to set |
Zend_View_Exception | When no Zend_Translate instance was set |
setTranslator | ( | $translate | ) |
Sets a translation Adapter for translation.
Zend_Translate | Zend_Translate_Adapter | $translate | Instance of Zend_Translate |
Zend_View_Exception | When no or a false instance was set |
translate | ( | $messageid = null | ) |
Translate a message You can give multiple params or an array of params.
If you want to output another locale just set it as last single parameter Example 1: translate('%1$s + %2$s', $value1, $value2, $locale); Example 2: translate('%1$s + %2$s', array($value1, $value2), $locale);
string | $messageid | Id of the message to be translated |
|
protected |