Part of lp.translations.utilities.translation_import View In Hierarchy
Method | __init__ | Construct an Importer for a translation template. |
Method | importMessage | See FileImporter. |
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. |