From 0c09ad2b30f2401212e791de2e096fd8393fc82c Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 22 Nov 2005 11:44:33 +0000 Subject: [PATCH] some more strings for transl --- src/common/helpers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/helpers.py b/src/common/helpers.py index 1cc289096..8736f09cb 100644 --- a/src/common/helpers.py +++ b/src/common/helpers.py @@ -95,23 +95,23 @@ def prep(user, server, resource): try: user = nodeprep.prepare(unicode(user)) except UnicodeError: - raise InvalidFormat, 'Invalid character in username.' + raise InvalidFormat, _('Invalid character in username.') else: user = None if not server: - raise InvalidFormat, 'Server address required.' + raise InvalidFormat, _('Server address required.') else: try: server = nameprep.prepare(unicode(server)) except UnicodeError: - raise InvalidFormat, 'Invalid character in hostname' + raise InvalidFormat, _('Invalid character in hostname.') if resource: try: resource = resourceprep.prepare(unicode(resource)) except UnicodeError: - raise InvalidFormat, 'Invalid character in resource.' + raise InvalidFormat, _('Invalid character in resource.') else: resource = None