diff -r 46454ff9d441 -r 0ed93eb8b364 VirtualMailManager/catchall.py --- a/VirtualMailManager/catchall.py Sun Sep 02 21:33:53 2012 +0000 +++ b/VirtualMailManager/catchall.py Mon Sep 03 19:59:49 2012 +0000 @@ -66,7 +66,7 @@ if dcount == limit or dcount + count_new > limit: failed = True errmsg = _( -u"""Cannot add %(count_new)i new destination(s) to catchall alias for +u"""Cannot add %(count_new)i new destination(s) to catch-all alias for domain '%(domain)s'. Currently this alias expands into %(count)i/%(limit)i recipients. %(count_new)i additional destination(s) will render this alias unusable. @@ -74,7 +74,7 @@ elif dcount > limit: failed = True errmsg = _( -u"""Cannot add %(count_new)i new destination(s) to catchall alias for +u"""Cannot add %(count_new)i new destination(s) to catch-all alias for domain '%(domain)s'. This alias already exceeds its expansion limit (%(count)i/%(limit)i). So its unusable, all messages addressed to this alias will be bounced. Hint: Delete some destination addresses.""") @@ -143,11 +143,11 @@ alias.""" assert isinstance(destination, EmailAddress) if not self._dests: - raise AErr(_(u"There are no catchall aliases defined for " + raise AErr(_(u"There are no catch-all aliases defined for " u"domain '%s'.") % self._domain, NO_SUCH_ALIAS) if not destination in self._dests: raise AErr(_(u"The address '%(addr)s' is not a destination of " - u"the catchall alias for domain '%(domain)s'.") + u"the catch-all alias for domain '%(domain)s'.") % {'addr': destination, 'domain': self._domain}, NO_SUCH_ALIAS) self._delete(destination) @@ -156,14 +156,14 @@ def get_destinations(self): """Returns an iterator for all destinations of the catchall alias.""" if not self._dests: - raise AErr(_(u"There are no catchall aliases defined for " + raise AErr(_(u"There are no catch-all aliases defined for " u"domain '%s'.") % self._domain, NO_SUCH_ALIAS) return iter(self._dests) def delete(self): """Deletes all catchall destinations for the domain.""" if not self._dests: - raise AErr(_(u"There are no catchall aliases defined for " + raise AErr(_(u"There are no catch-all aliases defined for " u"domain '%s'.") % self._domain, NO_SUCH_ALIAS) self._delete() del self._dests[:]