def all(self, domain=None):
if domain is None:<EOL><INDENT>return {k: dict(v) for k, v in list(self.messages.items())}<EOL><DEDENT>return dict(self.messages.get(domain, {}))<EOL>
Gets the messages within a given domain.

If domain is None, it returns all messages.

@type id: The
@param id: message id

@rtype: dict
@return: A dict of messages