Skip to content
Snippets Groups Projects
Commit 59fb1857 authored by js's avatar js
Browse files

It does not need to be a message.

parent ff129a19
No related branches found
No related tags found
No related merge requests found
......@@ -250,11 +250,11 @@ def encrypt_stanza(self, stanza):
c.NT.mac = base64.b64encode(self.hmac(self.km_s, m_content + \
crypto.encode_mpi(old_en_counter)))
msgtxt = '[This message is part of an encrypted session. ' \
msgtxt = '[This is part of an encrypted session. ' \
'If you see this message, something went wrong.]'
lang = os.getenv('LANG')
if lang is not None and lang != 'en': # we're not english
msgtxt = _('[This message is part of an encrypted session. '
msgtxt = _('[This is part of an encrypted session. '
'If you see this message, something went wrong.]') + ' (' + \
msgtxt + ')'
stanza.setBody(msgtxt)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment