#NEWLINE# def add( self , translations , merge = True ) : #NEWLINE# #INDENT# '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        ' #NEWLINE# domain = getattr ( translations , 'domain' , self . DEFAULT_DOMAIN ) #NEWLINE# if ( merge and ( domain == self . domain ) ) : #NEWLINE# #INDENT# return self . merge ( translations ) #NEWLINE# #UNINDENT# existing = self . _domains . get ( domain ) #NEWLINE# if ( merge and ( existing is not None ) ) : #NEWLINE# #INDENT# existing . merge ( translations ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# translations . add_fallback ( self ) #NEWLINE# self . _domains [ merge ] = translations #NEWLINE# #UNINDENT# return self