diff --git a/src/common/connection.py b/src/common/connection.py index c2aff3488c7ea6fe401a77e5cc1bb10b5626fd28..fadd595488a3824ca061186d6dcee3745c178c9c 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -1084,7 +1084,8 @@ def send_message(self, jid, msg, keyID, type='chat', subject='', lang = os.getenv('LANG') if lang is not None and lang != 'en': # we're not english # one in locale and one en - msgtxt = _(msgtxt) + ' (' + msgtxt + ')' + msgtxt = _('[This message is *encrypted* (See :XEP:`27`]') + \ + ' (' + msgtxt + ')' else: # Encryption failed, do not send message tim = localtime() diff --git a/src/common/stanza_session.py b/src/common/stanza_session.py index a9993017faa755606c69342099a6503a7bd253cf..8861823f4e1b4f70cb15e1c545a122ed018b4067 100644 --- a/src/common/stanza_session.py +++ b/src/common/stanza_session.py @@ -254,7 +254,9 @@ def encrypt_stanza(self, stanza): '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 = _(msgtxt) + ' (' + msgtxt + ')' + msgtxt = _('[This message is part of an encrypted session. ' + 'If you see this message, something went wrong.]') + ' (' + \ + msgtxt + ')' stanza.setBody(msgtxt) return stanza