'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:
Yann Leboulanger 2005-07-06 14:05:22 +00:00
parent e4932f56be
commit 3cb66c10d8
1 changed files with 2 additions and 10 deletions

View File

@ -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)