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
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. |
Parameters | trunk_string | translation string to use in trunk. |
stable_string | translation string to use in stable. | |
Returns | a pair of new TranslationMessages for trunk and stable, respectively. |