original_string: protected function prepareFileName($filename, $extension)
      {
          if ($this->config->get('file_upload_translit', 1)) {
              $filename = $this->language->translit($filename, null);
          }
  
          $suffix = gplcart_string_random(6);
          $clean = gplcart_file_sanitize($filename);
          return "$clean-$suffix.$extension";
      }
code: protected function prepareFileName($filename, $extension)
      {
          if ($this->config->get('file_upload_translit', 1)) {
              $filename = $this->language->translit($filename, null);
          }
  
          $suffix = gplcart_string_random(6);
          $clean = gplcart_file_sanitize($filename);
          return "$clean-$suffix.$extension";
      }
code_tokens: protected function prepareFileName ( $ filename , $ extension ) { if ( $ this -> config -> get ( 'file_upload_translit' , 1 ) ) { $ filename = $ this -> language -> translit ( $ filename , null ) ; } $ suffix = gplcart_string_random ( 6 ) ; $ clean = gplcart_file_sanitize ( $ filename ) ; return "$clean-$suffix.$extension" ; }
docstring: Sanitize and transliterate a filename
  @param string $filename
  @param string $extension
  @return string
docstring_tokens: Sanitize and transliterate a filename