l.t.t.t.TranslatedProductMixin(TranslatableProductMixin) : class documentation

Part of lp.translations.tests.test_translationmerger View In Hierarchy

Known subclasses: lp.translations.tests.test_translationmerger.TestPOTMsgSetMergingAndTranslations, lp.translations.tests.test_translationmerger.TestRemoveDuplicates, lp.translations.tests.test_translationmerger.TestSharingMigrationPerformance, lp.translations.tests.test_translationmerger.TestTranslationMessageMerging, lp.translations.tests.test_translationmerger.TestTranslationMessageNonMerging

Like TranslatableProductMixin, but adds actual POTMsgSets.

Also provides handy methods to set and verify translations for the POTMsgSets.

Creates one POTMsgSet for trunk and one for stable, i.e. a pre-sharing situation.

Method setUpProduct Undocumented
Method _makeTranslationMessage Set a translation for given message in given translation.
Method _makeTranslationMessages Translate the POTMsgSets in our trunk and stable templates.
Method _getPOTMsgSet Get POTMsgSet for given template.
Method _getPOTMsgSets Get POTMsgSets in our trunk and stable series.
Method _getMessage Get TranslationMessage for given POTMsgSet in given template.
Method _getMessages Get current TranslationMessages in trunk and stable POTMsgSets.
Method _getTranslation Get (singular) translation string from TranslationMessage.
Method _getTranslations Get translated strings for trunk and stable POTMsgSets.
def setUpProduct(self):
Undocumented
def _makeTranslationMessage(self, pofile, potmsgset, text, diverged):
Set a translation for given message in given translation.
def _makeTranslationMessages(self, trunk_string, stable_string, trunk_diverged=True, stable_diverged=True):
Translate the POTMsgSets in our trunk and stable templates.
Parameterstrunk_stringtranslation string to use in trunk.
stable_stringtranslation string to use in stable.
Returnsa pair of new TranslationMessages for trunk and stable, respectively.
def _getPOTMsgSet(self, template):
Get POTMsgSet for given template.
def _getPOTMsgSets(self):
Get POTMsgSets in our trunk and stable series.
def _getMessage(self, potmsgset, template):
Get TranslationMessage for given POTMsgSet in given template.
def _getMessages(self):
Get current TranslationMessages in trunk and stable POTMsgSets.
def _getTranslation(self, message):
Get (singular) translation string from TranslationMessage.
def _getTranslations(self):
Get translated strings for trunk and stable POTMsgSets.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.