def add(self, messages, domain='<STR_LIT>'):
assert isinstance(messages, (dict, CaseInsensitiveDict))<EOL>assert isinstance(domain, (str, unicode))<EOL>if domain not in self.messages:<EOL><INDENT>self.messages[domain] = CaseInsensitiveDict(messages)<EOL><DEDENT>else:<EOL><INDENT>self.messages[domain].update(messages)<EOL><DEDENT>
Adds translations for a given domain.