You are here

function TMGMTFileFormatInterface::import in Translation Management Tool 7

Converts an exported file content back to the translated data.

Parameters

string $imported_file: Path to a file or an XML string to import.

bool $is_file: (optional) Whether $imported_file is the path to a file or not.

Return value

Translated data array.

2 methods override TMGMTFileFormatInterface::import()
TMGMTFileFormatHTML::import in translators/file/tmgmt_file.format.html.inc
Converts an exported file content back to the translated data.
TMGMTFileformatXLIFF::import in translators/file/tmgmt_file.format.xliff.inc
Converts an exported file content back to the translated data.

File

translators/file/tmgmt_file.format.interface.inc, line 49

Class

TMGMTFileFormatInterface
Interface for exporting to a given file format.

Code

function import($imported_file, $is_file = TRUE);