l.t.u.g.POHeader : class documentation

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

See ITranslationHeaderData.
Method __init__ Undocumented
Method getRawContent See ITranslationHeaderData.
Method updateFromTemplateHeader See ITranslationHeaderData.
Method getLastTranslator See ITranslationHeaderData.
Method setLastTranslator See ITranslationHeaderData.
Method _emitSyntaxWarning Issue syntax warning, add to warnings list.
Method _getHeaderDict Return dictionary with all keys in raw_header.
Method _decode Undocumented
Method _parseAssignments Parse "assignment" expressions in the plural-form header.
Method _parseOptionalDate Attempt to parse date_string, or return None if invalid.
Method _parseHeaderFields Return plural form values based on the parsed header.
Method _renderDate Return string representation of date, or default.
def __init__(self, header_content, comment=None):
Undocumented
def _emitSyntaxWarning(self, message):
Issue syntax warning, add to warnings list.
def _getHeaderDict(self, raw_header):
Return dictionary with all keys in raw_header.
Parametersraw_headerstring representing the header in native format.
handled_keys_orderlist of header keys in the order they must appear on export time.
Returnsdictionary with all key/values in raw_header.
def _decode(self, text):
Undocumented
def _parseAssignments(self, text, separator=';', assigner='=', skipfirst=False):
Parse "assignment" expressions in the plural-form header.
def _parseOptionalDate(self, date_string):
Attempt to parse date_string, or return None if invalid.
def _parseHeaderFields(self):
Return plural form values based on the parsed header.
def getRawContent(self):
See ITranslationHeaderData.
def updateFromTemplateHeader(self, template_header):
See ITranslationHeaderData.
def getLastTranslator(self):
See ITranslationHeaderData.
def setLastTranslator(self, email, name=None):
See ITranslationHeaderData.
def _renderDate(self, date, default=None):
Return string representation of date, or default.
API Documentation for Launchpad, generated by pydoctor at 2019-04-20 00:00:04.