src/PoInitAbstract.php
public function msginitFile(string $filename): PoFile
    {
        if (!is_readable($filename)) {
            $source = false;
        } else {
            $source = file_get_contents($filename);
        }
        if (false===$source) {
            throw new FileNotReadableException($filename);
        }
        return $this->msginitString($source, $filename);
    }
public function msginitFile(string $filename): PoFile
    {
        if (!is_readable($filename)) {
            $source = false;
        } else {
            $source = file_get_contents($filename);
        }
        if (false===$source) {
            throw new FileNotReadableException($filename);
        }
        return $this->msginitString($source, $filename);
    }
public function msginitFile ( string $ filename ) : PoFile { if ( ! is_readable ( $ filename ) ) { $ source = false ; } else { $ source = file_get_contents ( $ filename ) ; } if ( false === $ source ) { throw new FileNotReadableException ( $ filename ) ; } return $ this -> msginitString ( $ source , $ filename ) ; }
Inspect the supplied source file, capture gettext references as a PoFile object

@param string $filename name of source file

@return PoFile

@throws FileNotReadableException
Inspect the supplied source file capture gettext references as a PoFile object