public function loadTranslation($file)
    {
        $translations = &gplcart_static("translation.$file");

        if (isset($translations)) {
            return (array) $translations;
        }

        $translations = array();

        if (empty($file) || !is_file($file)) {
            return $translations = array();
        }

        foreach ($this->parseCsv($file) as $row) {
            $key = array_shift($row);
            $translations[$key] = $row;
        }

        return $translations;
    }
public function loadTranslation($file)
    {
        $translations = &gplcart_static("translation.$file");

        if (isset($translations)) {
            return (array) $translations;
        }

        $translations = array();

        if (empty($file) || !is_file($file)) {
            return $translations = array();
        }

        foreach ($this->parseCsv($file) as $row) {
            $key = array_shift($row);
            $translations[$key] = $row;
        }

        return $translations;
    }
public function loadTranslation ( $ file ) { $ translations = & gplcart_static ( "translation.$file" ) ; if ( isset ( $ translations ) ) { return ( array ) $ translations ; } $ translations = array ( ) ; if ( empty ( $ file ) || ! is_file ( $ file ) ) { return $ translations = array ( ) ; } foreach ( $ this -> parseCsv ( $ file ) as $ row ) { $ key = array_shift ( $ row ) ; $ translations [ $ key ] = $ row ; } return $ translations ; }
Returns an array of translations from CSV files
@param string $file
@return array
Returns an array of translations from CSV files