def add_catalogue(self, catalogue):
assert isinstance(catalogue, MessageCatalogue)<EOL>if catalogue.locale != self.locale:<EOL><INDENT>raise ValueError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>' %<EOL>(catalogue.locale, self.locale))<EOL><DEDENT>for domain, messages in list(catalogue.all().items()):<EOL><INDENT>self.add(messages, domain)<EOL><DEDENT>for resource in catalogue.resources:<EOL><INDENT>self.add_resource(resource)<EOL><DEDENT>
Merges translations from the given Catalogue into the current one.
The two catalogues must have the same locale.

@type id: The
@param id: message id