l.t.i.t.ITranslationFormatImporter(Interface) : interface documentation

Part of lp.translations.interfaces.translationimporter View In Hierarchy

Translation file format importer.
Method getFormat The file format of the import.
Int priority Undocumented
TextLine content_type Undocumented
List file_extensions Undocumented
Bool uses_source_string_msgids Undocumented
Method parse Parse an ITranslationImportQueueEntry into an
Method getHeaderFromString Return the ITranslationHeaderData for the given header string.
def getFormat(file_contents):
The file format of the import.
Parametersfile_contentsA seekable file object with the contents of the file being imported. A returned format may sometimes be different from the base format of the ITranslationFormatImporter, and that is determined based on the contents.
ReturnsA TranslationFileFormat value.
priority =
Undocumented
content_type =
Undocumented
file_extensions =
Undocumented
uses_source_string_msgids =
Undocumented
def parse(translation_import_queue_entry):
Parse an ITranslationImportQueueEntry into an ITranslationFileData.
Parameterstranslation_import_queueAn ITranslationImportQueueEntry to parse.
ReturnsAn ITranslationFileData representing the parsed file.
def getHeaderFromString(header_string):
Return the ITranslationHeaderData for the given header string.
Parametersheader_stringA text representing a header for this concrete file format.
ReturnsAn ITranslationHeaderData based on the header string.
API Documentation for Launchpad, generated by pydoctor at 2019-07-22 00:00:05.