Author: asterix Date: 2008-09-01 16:11:28 +0200 (Mon, 01 Sep 2008) New Revision: 10373
Modified: trunk/src/dialogs.py Log: improve SAS dialog. Fixes #3468
Modified: trunk/src/dialogs.py =================================================================== --- trunk/src/dialogs.py 2008-09-01 13:40:40 UTC (rev 10372) +++ trunk/src/dialogs.py 2008-09-01 14:11:28 UTC (rev 10373) @@ -3819,7 +3819,7 @@ self.window.show_all()
def update_info(self): - labeltext = _('''Your chat session with %(jid)s is encrypted.\n\nThis session's Short Authentication String is <b>%(sas)s</b>.''') % {'jid': self.session.jid, 'sas': self.session.sas} + labeltext = _('''Your chat session with <b>%(jid)s</b> is encrypted.\n\nThis session's Short Authentication String is <b>%(sas)s</b>.''') % {'jid': self.session.jid, 'sas': self.session.sas} dir = os.path.join(gajim.DATA_DIR, 'pixmaps')
if self.session.verified_identity: @@ -3830,15 +3830,15 @@ self.session.is_loggable(), True) self.window.set_title(_('''Contact's identity verified''')) self.xml.get_widget('dialog-action_area1').set_no_show_all(True) - self.button_label.set_text(_('Verify again')) + self.button_label.set_text(_('Verify again...')) else: if self.session.control: self.session.control._show_lock_image(True, 'E2E', True, self.session.is_loggable(), False) - labeltext += '\n\n' + _('''To be certain that <b>only</b> the expected person can read your messages or send you messages, you need to verify their identity by clicking the button above.''') + labeltext += '\n\n' + _('''To be certain that <b>only</b> the expected person can read your messages or send you messages, you need to verify their identity by clicking the button below.''') security_image = 'security-low-big.png' self.window.set_title(_('''Contact's identity NOT verified''')) - self.button_label.set_text(_('Verify')) + self.button_label.set_text(_('Verify...'))
path = os.path.join(dir, security_image) filename = os.path.abspath(path) @@ -3851,7 +3851,7 @@
def on_verify_now_button_clicked(self, widget): pritext = _('''Have you verified the contact's identity?''') - sectext = _('''To prevent a man-in-the-middle attack, you should speak to %(jid)s directly (in person or on the phone) and verify that they see the same Short Authentication String (SAS) as you.\n\nThis session's Short Authentication String is <b>%(sas)s</b>.''') % {'jid': self.session.jid, 'sas': self.session.sas} + sectext = _('''To prevent talking to an unknown person, you should speak to <b>%(jid)s</b> directly (in person or on the phone) and verify that they see the same Short Authentication String (SAS) as you.\n\nThis session's Short Authentication String is <b>%(sas)s</b>.''') % {'jid': self.session.jid, 'sas': self.session.sas} sectext += '\n\n' + _('Did you talk to the remote contact and verify the SAS?')
def on_yes(checked):