| @@ -33,9 +33,9 @@ | ||
| 33 | 33 | $this->file_path = $file_path; |
| 34 | 34 | if (file_exists($this->file_path)) { |
| 35 | 35 | $this->file_handle = fopen($this->file_path, 'r'); |
| 36 | 36 | } else { |
| 37 | - throw new FileException("File Not Found: " . $file_path); | |
| 37 | + throw new FileException(sprintf(__("File Not Found: %s", 'jc-importer'), $file_path)); | |
| 38 | 38 | } |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | public function __destruct() |
| @@ -90,9 +90,9 @@ | ||
| 90 | 90 | */ |
| 91 | 91 | public function getFileHandle() |
| 92 | 92 | { |
| 93 | 93 | if (!in_array(get_resource_type($this->file_handle), array('stream', 'file'), true)) { |
| 94 | - throw new FileException("File not found: " . $this->file_path); | |
| 94 | + throw new FileException(sprintf(__("File not found: %s", 'jc-importer'), $this->file_path)); | |
| 95 | 95 | } |
| 96 | 96 | return $this->file_handle; |
| 97 | 97 | } |
| 98 | 98 | |