1.

How Can I Make All I'll 8n-aware Components Aware Of My Zend_translate Object?

Answer»

A VARIETY of components are translation AWARE (i.e., ACCEPT Zend_Translate objects), including:

Zend_View_Helper_Translate Zend_Validate_* Zend_Form

To have them all use the same Zend_Translate instance, simply place it in the REGISTRY with the key “Zend_Translate”:

Zend_Registry::set(‘Zend_Translate’, $translate);

A variety of components are translation aware (i.e., accept Zend_Translate objects), including:

To have them all use the same Zend_Translate instance, simply place it in the registry with the key “Zend_Translate”:



Discussion

No Comment Found