SimpleSAML\Locale\Translate::readDictionaryPHP PHP Method

readDictionaryPHP() private method

Read a dictionary file in PHP format.
private readDictionaryPHP ( string $filename ) : array
$filename string The absolute path to the dictionary file.
return array An array holding all the translations in the file.
    private function readDictionaryPHP($filename)
    {
        $phpFile = $filename . '.php';
        assert('file_exists($phpFile)');
        $lang = null;
        include $phpFile;
        if (isset($lang)) {
            return $lang;
        }
        return array();
    }