metion account name in fingerprint changed dialog. Fixes $4735

This commit is contained in:
Yann Leboulanger 2009-01-26 18:05:04 +00:00
parent 2dec19d34f
commit 8603712990
1 changed files with 5 additions and 4 deletions

View File

@ -2022,10 +2022,11 @@ class Interface:
gajim.connections[account].disconnect(on_purpose=True)
self.handle_event_status(account, 'offline')
pritext = _('SSL certificate error')
sectext = _('It seems the SSL certificate has changed or your connection '
'is being hacked.\nOld fingerprint: %(old)s\nNew fingerprint: %(new)s'
'\n\nDo you still want to connect and update the fingerprint of the '
'certificate?') % {'old': gajim.config.get_per('accounts', account,
sectext = _('It seems the SSL certificate of account %(account)s has '
'changed or your connection is being hacked.\nOld fingerprint: %(old)s'
'\nNew fingerprint: %(new)s\n\nDo you still want to connect and update'
' the fingerprint of the certificate?') % {'account': account,
'old': gajim.config.get_per('accounts', account,
'ssl_fingerprint_sha1'), 'new': data[0]}
if 'fingerprint_error' in self.instances[account]['online_dialog']:
self.instances[account]['online_dialog']['fingerprint_error'].destroy()