l.t.s.v.ValidateTranslationsFile : class documentation

Part of lp.translations.scripts.validate_translations_file View In Hierarchy

Parse translations files to see if they are well-formed.
Method __init__ Set up basic facilities, similar to LaunchpadScript.
Method main Validate file(s).
Method _pickValidator Select the appropriate validator for a file.
Method _validateContent Validate in-memory file contents.
Method _readAndValidate Read given file and validate it.
def __init__(self, test_args=None):
Set up basic facilities, similar to LaunchpadScript.
def main(self):
Validate file(s).
def _pickValidator(self, filename):
Select the appropriate validator for a file.
def _validateContent(self, filename, content):
Validate in-memory file contents.
ParametersfilenameName of this file.
contentContents of this file, as raw bytes.
ReturnsWhether the file was parsed successfully.
def _readAndValidate(self, filename):
Read given file and validate it.
ParametersfilenameName of a file to read.
ReturnsWhether the file was parsed successfully.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.