

def merge(self, translations):
    'Merge the given translations into the catalog.\n\n        Message translations in the specified catalog override any messages\n        with the same identifier in the existing catalog.\n\n        :param translations: the `Translations` instance with the messages to\n                             merge\n        :return: the `Translations` instance (``self``) so that `merge` calls\n                 can be easily chained\n        :rtype: `Translations`\n        '
    if isinstance(translations, gettext.GNUTranslations):
        self._catalog.update(translations._catalog)
        if isinstance(translations, Translations):
            self.files.extend(translations.files)
    return self

dataset/ETHPy150Open ibagrak/algae/gae/libs/babel/support.py Translations.merge/original