/**
  * Register the plugin.
  * @param $category string
  * @param $path string
  */
 function register($category, $path)
 {
     $success = parent::register($category, $path);
     $this->typeCrosswalkFieldNames = array();
     if ($success && $this->isEnabled()) {
         // Fetch the list of field IDs that the type
         // crosswalk uses; we will map all languages mentioned
         // in these fields.
         $crosswalkDao = DAORegistry::getDAO('CrosswalkDAO');
         $typeCrosswalk =& $crosswalkDao->getCrosswalkByPublicCrosswalkId('type');
         if ($typeCrosswalk) {
             $fields =& $typeCrosswalk->getFields();
             while ($field =& $fields->next()) {
                 $this->typeCrosswalkFieldNames[$field->getSchemaId()][] = $field->getName();
                 unset($field);
             }
         }
     }
     $this->addLocaleData();
     return $success;
 }
 /**
  * Register the plugin.
  * @param $category string
  * @param $path string
  */
 function register($category, $path)
 {
     $success = parent::register($category, $path);
     $this->addLocaleData();
     return $success;
 }