code/libraries/joomlatools/library/translator/locator/abstract.php
public function find(array $info)
    {
        $result = array();

        if($info['path'] && $info['locale'])
        {
            $pattern = $info['path'].'/'.$info['locale'].'.*';
            $results = glob($pattern);

            if ($results)
            {
                foreach($results as $file)
                {
                    if($path = $this->realPath($file))
                    {
                        $result[] = $path;
                        break;
                    }
                }
            }
        }

        return $result;
    }
public function find(array $info)
    {
        $result = array();

        if($info['path'] && $info['locale'])
        {
            $pattern = $info['path'].'/'.$info['locale'].'.*';
            $results = glob($pattern);

            if ($results)
            {
                foreach($results as $file)
                {
                    if($path = $this->realPath($file))
                    {
                        $result[] = $path;
                        break;
                    }
                }
            }
        }

        return $result;
    }
public function find ( array $ info ) { $ result = array ( ) ; if ( $ info [ 'path' ] && $ info [ 'locale' ] ) { $ pattern = $ info [ 'path' ] . '/' . $ info [ 'locale' ] . '.*' ; $ results = glob ( $ pattern ) ; if ( $ results ) { foreach ( $ results as $ file ) { if ( $ path = $ this -> realPath ( $ file ) ) { $ result [ ] = $ path ; break ; } } } } return $ result ; }
Find a translation path

@param array  $info  The path information
@return array
Find a translation path