l.t.u.translation_import : module documentation

Part of lp.translations.utilities

No module docstring
Function is_identical_translation Is a new translation substantially the same as the existing one?
Class ExistingPOFileInDatabase All existing translations for a PO file.
Class TranslationImporter Handle translation resources imports.
Class FileImporter Base class for importing translations or translation templates.
Class POTFileImporter Import a translation template file.
Class POFileImporter Import a translation file.
def is_identical_translation(existing_msg, new_msg):
Is a new translation substantially the same as the existing one?

Compares msgid and msgid_plural, and all translations.

Parametersexisting_msga TranslationMessageData representing a translation message currently kept in the database.
new_msgan alternative TranslationMessageData translating the same original message.
ReturnsTrue if the new message is effectively identical to the existing one, or False if replacing existing_msg with new_msg would make a semantic difference.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.