original_string: public static function loadHandler($handlerClass)
      {
          if (!static::$_domain) {
              throw new Horde_Translation_Exception('The domain property must be set by the class that extends Horde_Translation_Autodetect.');
          }
  
          $directory = static::_searchLocaleDirectory();
          if (!$directory) {
              throw new Horde_Translation_Exception(sprintf('Could not found find any locale directory for %s domain.', static::$_domain));
          }
  
          static::$_directory = $directory;
          parent::loadHandler($handlerClass);
      }
code: public static function loadHandler($handlerClass)
      {
          if (!static::$_domain) {
              throw new Horde_Translation_Exception('The domain property must be set by the class that extends Horde_Translation_Autodetect.');
          }
  
          $directory = static::_searchLocaleDirectory();
          if (!$directory) {
              throw new Horde_Translation_Exception(sprintf('Could not found find any locale directory for %s domain.', static::$_domain));
          }
  
          static::$_directory = $directory;
          parent::loadHandler($handlerClass);
      }
code_tokens: public static function loadHandler ( $ handlerClass ) { if ( ! static :: $ _domain ) { throw new Horde_Translation_Exception ( 'The domain property must be set by the class that extends Horde_Translation_Autodetect.' ) ; } $ directory = static :: _searchLocaleDirectory ( ) ; if ( ! $ directory ) { throw new Horde_Translation_Exception ( sprintf ( 'Could not found find any locale directory for %s domain.' , static :: $ _domain ) ) ; } static :: $ _directory = $ directory ; parent :: loadHandler ( $ handlerClass ) ; }
docstring: Auto detects the locale directory location.
  
  @param string $handlerClass  The name of a class implementing the
  Horde_Translation_Handler interface.
docstring_tokens: Auto detects the locale directory location .