protected function getAllTxFiles($language)
    {
        $iterator = new \DirectoryIterator($this->txlang . DIRECTORY_SEPARATOR . $language);

        $files = array();
        while ($iterator->valid()) {
            if (!$iterator->isDot()
                && $iterator->isFile()
                && $iterator->getExtension() == 'xlf'
                && $this->isNotFileToSkip($iterator->getPathname())
            ) {
                $files[$iterator->getPathname()] = $iterator->getFilename();
            }
            $iterator->next();
        }

        return $files;
    }
protected function getAllTxFiles($language)
    {
        $iterator = new \DirectoryIterator($this->txlang . DIRECTORY_SEPARATOR . $language);

        $files = array();
        while ($iterator->valid()) {
            if (!$iterator->isDot()
                && $iterator->isFile()
                && $iterator->getExtension() == 'xlf'
                && $this->isNotFileToSkip($iterator->getPathname())
            ) {
                $files[$iterator->getPathname()] = $iterator->getFilename();
            }
            $iterator->next();
        }

        return $files;
    }
protected function getAllTxFiles ( $ language ) { $ iterator = new \ DirectoryIterator ( $ this -> txlang . DIRECTORY_SEPARATOR . $ language ) ; $ files = array ( ) ; while ( $ iterator -> valid ( ) ) { if ( ! $ iterator -> isDot ( ) && $ iterator -> isFile ( ) && $ iterator -> getExtension ( ) == 'xlf' && $ this -> isNotFileToSkip ( $ iterator -> getPathname ( ) ) ) { $ files [ $ iterator -> getPathname ( ) ] = $ iterator -> getFilename ( ) ; } $ iterator -> next ( ) ; } return $ files ; }
Retrieve all XLIFF for a given language.

@param string $language The language to search the xliff files in.

@return string[]
Retrieve all XLIFF for a given language .