Generator/TranslationsGenerator.php
protected function getTrans($filename)
    {
        if (is_file($filename)) {
            $trans = Yaml::parse(file_get_contents($filename));
        } else {
            $trans = array();
        }

        $keys = array('breadcrumb', 'list', 'filter', 'show', 'form');
        foreach ($keys as $key) {
            if (!array_key_exists($key, $trans)) {
                $trans[$key] = array();
            }
        }

        return $trans;
    }
protected function getTrans($filename)
    {
        if (is_file($filename)) {
            $trans = Yaml::parse(file_get_contents($filename));
        } else {
            $trans = array();
        }

        $keys = array('breadcrumb', 'list', 'filter', 'show', 'form');
        foreach ($keys as $key) {
            if (!array_key_exists($key, $trans)) {
                $trans[$key] = array();
            }
        }

        return $trans;
    }
protected function getTrans ( $ filename ) { if ( is_file ( $ filename ) ) { $ trans = Yaml :: parse ( file_get_contents ( $ filename ) ) ; } else { $ trans = array ( ) ; } $ keys = array ( 'breadcrumb' , 'list' , 'filter' , 'show' , 'form' ) ; foreach ( $ keys as $ key ) { if ( ! array_key_exists ( $ key , $ trans ) ) { $ trans [ $ key ] = array ( ) ; } } return $ trans ; }
Load translation file.

@param string $filename Filename

@return array
Load translation file .