示例#1
0
 /**
  * Setup language list.
  *
  * @return void
  */
 public static function initLanguageList()
 {
     $translate = Zend_Registry::get(Application_Translate::REGISTRY_KEY);
     $languages = array();
     foreach (Opus_Language::getAllActiveTable() as $languageRow) {
         $langId = $languageRow['part2_t'];
         $languages[$langId] = $translate->translate($langId);
     }
     self::$_languageList = $languages;
     Zend_Registry::set('Available_Languages', $languages);
 }