plugin OTR: fixes a couple of typos
This commit is contained in:
parent
1170edc400
commit
71f0f14b36
1 changed files with 5 additions and 5 deletions
|
|
@ -36,8 +36,8 @@ import copy
|
|||
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 @@ class OTR(object):
|
|||
# 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 @@ class OTR(object):
|
|||
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)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue