l.t.u.t.POFileImporter(FileImporter) : class documentation

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

Import a translation file.
Method __init__ Construct an Importer for a translation file.
Method importMessage See FileImporter.
Method _getPersonByEmail Return the person for given email.

Inherited from FileImporter:

Method getOrCreatePOTMsgSet Get the POTMsgSet that this message belongs to or create a new
Method share_with_other_side Returns True if translations should be shared with the other side.
Method is_upstream_import_on_sourcepackage Use TranslationMessage.acceptFromUpstreamImportOnPackage`.
Method translations_are_msgids Are these English strings instead of translations?
Method storeTranslationsInDatabase Try to store translations in the database.
Method importFile Import a parsed file into the database.
Method format_exporter Get the exporter to display a message in error messages.
Method _storeCredits Store credits but only those provided by the maintainer.
Method _validateMessage Validate the message and report success or failure.
Method _acceptMessage Try to approve the message, return None on TranslationConflict.
Method _addUpdateError Add an error returned by updateTranslation.
Method _addConflictError Add an error if there was an edit conflict.
def __init__(self, translation_import_queue_entry, importer, logger):
Construct an Importer for a translation file.
def _getPersonByEmail(self, email, name=None):
Return the person for given email.

If the person is unknown in Launchpad, the account will be created but it will not have a password and thus, will be disabled.

Parametersemailtext that contains the email address.
namename of the owner of the given email address.
ReturnsA person object or None, if email is None.
def importMessage(self, message):
See FileImporter.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.