diff -r 4515afec62e5 -r 6709d0faf2f5 VirtualMailManager/handler.py --- a/VirtualMailManager/handler.py Thu Aug 05 05:08:02 2010 +0000 +++ b/VirtualMailManager/handler.py Thu Aug 05 23:26:23 2010 +0000 @@ -200,6 +200,8 @@ other = self._chk_other_address_types(address, exclude) if not other: return False + # TP: %(a_type)s will be one of: 'an account', 'an alias' or + # 'a relocated user' msg = _(u"There is already %(a_type)s with the address '%(address)s'.") raise VMMError(msg % {'a_type': OTHER_TYPES[other][0], 'address': address}, OTHER_TYPES[other][1]) @@ -424,7 +426,7 @@ Domain.get_relocated.""" if details not in [None, 'accounts', 'aliasdomains', 'aliases', 'full', 'relocated']: - raise VMMError(_(u'Invalid argument: ā€œ%sā€') % details, + raise VMMError(_(u"Invalid argument: '%s'") % details, INVALID_ARGUMENT) dom = self._get_domain(domainname) dominfo = dom.get_info()