'Encryption disabled' string is not sent through Jabber, so no need to have it twice (once untranslated and once translated)
This commit is contained in:
parent
e4932f56be
commit
3cb66c10d8
|
@ -24,7 +24,6 @@ import gobject
|
|||
import time
|
||||
import urllib
|
||||
import base64
|
||||
import os
|
||||
|
||||
import dialogs
|
||||
import chat
|
||||
|
@ -389,19 +388,12 @@ class TabbedChatWindow(chat.Chat):
|
|||
else:
|
||||
ec = gajim.encrypted_chats[self.account]
|
||||
if encrypted and jid not in ec:
|
||||
msg = 'Encryption enabled'
|
||||
lang = os.getenv('LANG')
|
||||
if lang is not None or lang != 'en': # we're not english
|
||||
msg = _('Encryption enabled')\
|
||||
+ ' (Encryption enabled)' # one in locale and one in en
|
||||
msg = _('Encryption enabled')
|
||||
chat.Chat.print_conversation_line(self, msg, jid,
|
||||
'status', '', tim)
|
||||
ec.append(jid)
|
||||
if not encrypted and jid in ec:
|
||||
msg = 'Encryption disabled'
|
||||
lang = os.getenv('LANG')
|
||||
if lang is not None or lang != 'en': # we're not english
|
||||
msg = _('Encryption disabled') + ' (Encryption disabled)'
|
||||
msg = _('Encryption disabled')
|
||||
chat.Chat.print_conversation_line(self, msg, jid,
|
||||
'status', '', tim)
|
||||
ec.remove(jid)
|
||||
|
|
Loading…
Reference in New Issue