/** * Get tralslation * * @return string */ public function t($key) { if ($this->_enableI18n) { $args = func_get_args(); $translator = null; if (null === $this->_translator) { $this->_translator = Aimo_Translator::getInstance(); } $translator = $this->_translator; $result = call_user_func_array(array($translator, 't'), $args); return $result; } else { return $key; } }
/** * construct function * * @return void */ public function __construct() { $this->_lang = Aimo_Translator::getInstance(); }