say the same sec text for the same error
This commit is contained in:
parent
1bd32677ac
commit
75a598b938
|
@ -627,7 +627,7 @@ class Connection:
|
||||||
self.connected = 0
|
self.connected = 0
|
||||||
self.dispatch('STATUS', 'offline')
|
self.dispatch('STATUS', 'offline')
|
||||||
self.dispatch('ERROR', (_('Could not connect to "%s"') % self.name,
|
self.dispatch('ERROR', (_('Could not connect to "%s"') % self.name,
|
||||||
''))
|
_('Check your connection or try again later')))
|
||||||
return None
|
return None
|
||||||
|
|
||||||
con.RegisterHandler('message', self._messageCB)
|
con.RegisterHandler('message', self._messageCB)
|
||||||
|
@ -665,7 +665,7 @@ class Connection:
|
||||||
self.connected = 0
|
self.connected = 0
|
||||||
self.dispatch('STATUS', 'offline')
|
self.dispatch('STATUS', 'offline')
|
||||||
self.dispatch('ERROR', (_('Could not connect to "%s"') % self.name,
|
self.dispatch('ERROR', (_('Could not connect to "%s"') % self.name,
|
||||||
_('Please check that you have an internet connection available')))
|
_('Check your connection or try again later')))
|
||||||
return None
|
return None
|
||||||
if auth:
|
if auth:
|
||||||
con.initRoster()
|
con.initRoster()
|
||||||
|
|
Loading…
Reference in New Issue