Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2008-08-04 12:07:07 +0400
committerYann Leboulanger <asterix@lagaule.org>2008-08-04 12:07:07 +0400
commit2b896152a2df2e4cca64fb6a4b05b3bd7be7f039 (patch)
tree55e2b12481bd86244f66b6e29df0d16081963f22 /src
parent186c5d4bce85248c5a818ae52f85a4f38efcfcd7 (diff)
make back strings translatable
Diffstat (limited to 'src')
-rw-r--r--src/common/connection.py3
-rw-r--r--src/common/stanza_session.py4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/common/connection.py b/src/common/connection.py
index c2aff3488..fadd59548 100644
--- a/src/common/connection.py
+++ b/src/common/connection.py
@@ -1084,7 +1084,8 @@ class Connection(ConnectionHandlers):
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 a9993017f..8861823f4 100644
--- a/src/common/stanza_session.py
+++ b/src/common/stanza_session.py
@@ -254,7 +254,9 @@ class EncryptedStanzaSession(StanzaSession):
'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