original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Returns an array of translations from CSV files
  @param string $file
  @return array
docstring_tokens: Returns an array of translations from CSV files