Example #1
0
 public static function translate($string)
 {
     Zend_Loader::loadClass("Ht_Utils_Translate");
     $trans = Ht_Utils_Translate::getInstance();
     $_translated = $trans->get($string);
     return $_translated != null ? $_translated : $string . " *";
 }
Example #2
0
 public function get($var_name, $section = null)
 {
     if (isset($section) && $section != '') {
         self::$_section = $section;
     }
     return $this->_translate($var_name);
 }