l.t.u.g.GettextPOExporter(GettextPOExporterBase) : class documentation

Part of lp.translations.utilities.gettext_po_exporter View In Hierarchy

Known subclasses: lp.translations.utilities.kde_po_exporter.KdePOExporter, lp.translations.utilities.xpi_po_exporter.XPIPOExporter

Support class to export Gettext .po files.
Method __init__ Undocumented
Method _makeExportedHeader Create a standard gettext PO header, encoded as a message.

Inherited from GettextPOExporterBase:

Method exportTranslationMessageData See ITranslationFormatExporter.
Method exportTranslationFile See ITranslationFormatExporter.
Method _encode_file_content Try to encode the file using the charset given in the header.
def __init__(self, context=None):
Undocumented
def _makeExportedHeader(self, translation_file):
Create a standard gettext PO header, encoded as a message.
ReturnsThe header message as a unicode string.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.