Part of lp.translations.utilities
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. |
Compares msgid and msgid_plural, and all translations.
Parameters | existing_msg | a TranslationMessageData representing a translation
message currently kept in the database. |
new_msg | an alternative TranslationMessageData translating the
same original message. | |
Returns | True 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. |