l.t.u.t.TranslationSplitterBase : class documentation

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

Known subclasses: lp.translations.utilities.translationsplitter.TranslationSplitter, lp.translations.utilities.translationsplitter.TranslationTemplateSplitter

Base class for translation splitting jobs.
Static Method splitPOTMsgSet Split the POTMsgSet for TranslationTemplateItem.
Static Method migrateTranslations Migrate the translations between potemplates.
Method split Split the translations for the ProductSeries and SourcePackage.
@staticmethod
def splitPOTMsgSet(ubuntu_item):
Split the POTMsgSet for TranslationTemplateItem.

The specified TranslationTemplateItem will have a new POTMsgSet that is a clone of the old one. All other TranslationTemplateItems will continue to use the old POTMsgSet.

Parametersubuntu_itemThe TranslationTemplateItem to use.
@staticmethod
def migrateTranslations(upstream_msgset, ubuntu_item):
Migrate the translations between potemplates.
Parametersupstream_msgsetThe POTMsgSet to copy or move translations from.
ubuntu_itemThe target TranslationTemplateItem. ubuntu_item.potmsgset is the msgset to attach translations to and ubuntu_item.potemplate is used to determine whether to move a diverged translation.
def split(self):
Split the translations for the ProductSeries and SourcePackage.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.