diff src/plugins/plugin_sec_otr.py @ 1463:364dcdae2bff

plugin OTR: fixes a couple of typos
author souliane <souliane@mailoo.org>
date Wed, 03 Sep 2014 20:55:54 +0200
parents 3265a2639182
children 8d61160ee4b8
line wrap: on
line diff
--- 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)}