# HG changeset patch # User souliane # Date 1409770554 -7200 # Node ID 364dcdae2bffbfaabd663d8756e2e6dbf52bfe04 # Parent c74015dc2785ce7580965fcbd6d0f401ed11eec5 plugin OTR: fixes a couple of typos diff -r c74015dc2785 -r 364dcdae2bff src/plugins/plugin_sec_otr.py --- a/src/plugins/plugin_sec_otr.py Sun Aug 16 01:01:34 2015 +0200 +++ b/src/plugins/plugin_sec_otr.py Wed Sep 03 20:55:54 2014 +0200 @@ -36,8 +36,8 @@ NS_OTR = "otr_plugin" PRIVATE_KEY = "PRIVATE KEY" MAIN_MENU = D_('OTR') -AUTH_TXT = D_("To authenticate your correspondent, you need to give your below fingerprint *BY AN EXTERNAL CANAL* (i.e. not in this chat), and check that the one he give you is the same as below. If there is a mismatch, there can be a spy between you !") -DROP_TXT = D_("You private key is used to encrypt messages for your correspondent, nobody except you must know it, if you are in doubt, you should drop it !\n\nAre you sure you want to drop your private key ?") +AUTH_TXT = D_("To authenticate your correspondent, you need to give your below fingerprint *BY AN EXTERNAL CANAL* (i.e. not in this chat), and check that the one he gives you is the same as below. If there is a mismatch, there can be a spy between you!") +DROP_TXT = D_("You private key is used to encrypt messages for your correspondent, nobody except you must know it, if you are in doubt, you should drop it!\n\nAre you sure you want to drop your private key?") DEFAULT_POLICY_FLAGS = { 'ALLOW_V1':False, @@ -330,7 +330,7 @@ # we have a private key, but not the fingerprint of our correspondent dialog = xml_tools.XMLUI(C.XMLUI_DIALOG, dialog_opt = {C.XMLUI_DATA_TYPE: C.XMLUI_DIALOG_MESSAGE, - C.XMLUI_DATA_MESS: _("Your fingerprint is\n{fingerprint}\n\nStart an OTR conversation to have your correspondent one.").format(fingerprint=priv_key), + C.XMLUI_DATA_MESS: _("Your fingerprint is:\n{fingerprint}\n\nStart an OTR conversation to have your correspondent one.").format(fingerprint=priv_key), C.XMLUI_DATA_LVL: C.XMLUI_DATA_LVL_INFO }, title = _("Fingerprint"), @@ -342,10 +342,10 @@ data = xml_tools.XMLUIResult2DataFormResult(raw_data) if data['match'] == 'yes': otrctx.setCurrentTrust('verified') - note_msg = _("Your correspondant {correspondent} is now TRUSTED") + note_msg = _("Your correspondent {correspondent} is now TRUSTED") else: otrctx.setCurrentTrust('') - note_msg = _("Your correspondant {correspondent} is now UNTRUSTED") + note_msg = _("Your correspondent {correspondent} is now UNTRUSTED") note = xml_tools.XMLUI(C.XMLUI_DIALOG, dialog_opt = { C.XMLUI_DATA_TYPE: C.XMLUI_DIALOG_NOTE, C.XMLUI_DATA_MESS: note_msg.format(correspondent=otrctx.peer)}