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

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

Exporter for translation files.
Method getExportersForSupportedFileFormat Return `ITranslationFormatExporter`s that can export file_format.
Method getExporterProducingTargetFileFormat Return the ITranslationFormatExporter that generates file_format.
Method exportTranslationFiles Return an IExportedTranslationFile representing the export.
def getExportersForSupportedFileFormat(file_format):
Return `ITranslationFormatExporter`s that can export file_format.

:param file_format: The source `ITranslationFileFormat` format for the
    translation file we want to export.
:return: A list of `ITranslationFormatExporter` objects that are able
    to handle exports for translation files that have file_format
    as their source format.
def getExporterProducingTargetFileFormat(file_format):
Return the ITranslationFormatExporter that generates file_format.
Parametersfile_formatAn ITranslationFileFormat entry that we want to get its exporter class.
ReturnsAn ITranslationFormatExporter object that handles file_format exports or None if there is no handler available for it.
def exportTranslationFiles(translation_files, target_format=None, ignore_obsolete=False, force_utf8=False):
Return an IExportedTranslationFile representing the export.
Parameterstranslation_filesA sequence of ITranslationFileData objects to export.
target_formatOptional TranslationFileFormat to export to. Defaults to the files' native formats.
ignore_obsoleteA flag indicating whether obsolete messages should be exported.
force_utf8A flag indicating whether the export should be forced to use UTF-8 encoding. This argument is only useful if the file format allows different encodings.
ReturnsAn IExportedTranslationFile representing the export.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.