l.t.u.m.PropertyFile : class documentation

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

Class for reading translatable messages from a .properties file.

The file format is described at: http://www.mozilla.org/projects/l10n/mlp_chrome.html#text

Method __init__ Constructs a dictionary from a .properties file.
Method parse Parse given content as a property file.
def __init__(self, filename, chrome_path, content):
Constructs a dictionary from a .properties file.
ParametersfilenameThe file name where the content came from.
contentThe file content that we want to parse.
def parse(self, content):
Parse given content as a property file.

Once the parse is done, self.messages has a list of the available
`ITranslationMessageData`s.
API Documentation for Launchpad, generated by pydoctor at 2019-02-21 00:00:16.