#NEWLINE# def merge( self , translations ) : #NEWLINE# #INDENT# '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        ' #NEWLINE# if isinstance ( self , gettext . GNUTranslations ) : #NEWLINE# #INDENT# self . _catalog . update ( translations . _catalog ) #NEWLINE# if isinstance ( translations , Translations ) : #NEWLINE# #INDENT# self . files . extend ( translations . files ) #NEWLINE# #UNINDENT# #UNINDENT# return self