some more strings for transl
This commit is contained in:
parent
150cbce4e2
commit
0c09ad2b30
|
@ -95,23 +95,23 @@ def prep(user, server, resource):
|
||||||
try:
|
try:
|
||||||
user = nodeprep.prepare(unicode(user))
|
user = nodeprep.prepare(unicode(user))
|
||||||
except UnicodeError:
|
except UnicodeError:
|
||||||
raise InvalidFormat, 'Invalid character in username.'
|
raise InvalidFormat, _('Invalid character in username.')
|
||||||
else:
|
else:
|
||||||
user = None
|
user = None
|
||||||
|
|
||||||
if not server:
|
if not server:
|
||||||
raise InvalidFormat, 'Server address required.'
|
raise InvalidFormat, _('Server address required.')
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
server = nameprep.prepare(unicode(server))
|
server = nameprep.prepare(unicode(server))
|
||||||
except UnicodeError:
|
except UnicodeError:
|
||||||
raise InvalidFormat, 'Invalid character in hostname'
|
raise InvalidFormat, _('Invalid character in hostname.')
|
||||||
|
|
||||||
if resource:
|
if resource:
|
||||||
try:
|
try:
|
||||||
resource = resourceprep.prepare(unicode(resource))
|
resource = resourceprep.prepare(unicode(resource))
|
||||||
except UnicodeError:
|
except UnicodeError:
|
||||||
raise InvalidFormat, 'Invalid character in resource.'
|
raise InvalidFormat, _('Invalid character in resource.')
|
||||||
else:
|
else:
|
||||||
resource = None
|
resource = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue