

def add(self, translations, merge=True):
    'Add the given translations to the catalog.\n\n        If the domain of the translations is different than that of the\n        current catalog, they are added as a catalog that is only accessible\n        by the various ``d*gettext`` functions.\n\n        :param translations: the `Translations` instance with the messages to\n                             add\n        :param merge: whether translations for message domains that have\n                      already been added should be merged with the existing\n                      translations\n        :return: the `Translations` instance (``self``) so that `merge` calls\n                 can be easily chained\n        :rtype: `Translations`\n        '
    domain = getattr(translations, 'domain', self.DEFAULT_DOMAIN)
    if (merge and (domain == self.domain)):
        return self.merge(translations)
    existing = self._domains.get(domain)
    if (merge and (existing is not None)):
        existing.merge(translations)
    else:
        translations.add_fallback(self)
        translations._domains[domain] = translations
    return self

dataset/ETHPy150Open ibagrak/algae/gae/libs/babel/support.py Translations.add/VarMisuse@99/330 `self`->`translations`