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

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

Translation file format exporter.
Choice format Undocumented
List supported_source_formats TranslationFileFormat entries supported that this exporter is able
TextLine mime_type Undocumented
Method exportTranslationMessageData Export the string for the given translation message.
Method exportTranslationFile Return an IExportedTranslationFile representing the export.
format =
Undocumented
supported_source_formats =
TranslationFileFormat entries supported that this exporter is able to convert from.
mime_type =
Undocumented
def exportTranslationMessageData(translation_message):
Export the string for the given translation message.
Parameterstranslation_messageITranslationMessageData to export.
ReturnsUnicode string representing given ITranslationMessageData.
def exportTranslationFile(translation_files, export_storage, ignore_obsolete=False, force_utf8=False):
Return an IExportedTranslationFile representing the export.
Parameterstranslation_fileAn ITranslationFileData object to export.
export-storageAn IExportedTranslationFile that will receive the export.
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.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.