Beispiel #1
0
 /**
  * Set a static reference to a global Zend_Translate object
  * usable through self::_() function
  * If called more then one time, from the second call
  * the $translator object will be appended to the previous one
  * @param Zend_Translate $translator
  */
 public static function initTranslator(Zend_Translate $translator)
 {
     //if ( true ) self::$_stringsWriter = new StringsWriter();
     if (is_null(self::$_translator)) {
         self::$_translator = $translator;
         X_Debug::i("Translator enabled");
     } else {
         self::$_translator->getAdapter()->addTranslation($translator);
     }
 }