Part of lp.translations.utilities.translation_import View In Hierarchy
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. |
If the person is unknown in Launchpad, the account will be created but it will not have a password and thus, will be disabled.
Parameters | text that contains the email address. | |
name | name of the owner of the given email address. | |
Returns | A person object or None, if email is None. |