From 9438e3d17530d8c34baf07454e2ccc17c0cd526a Mon Sep 17 00:00:00 2001 From: js Date: Sat, 10 May 2008 11:47:04 +0000 Subject: [PATCH] Add OTR in features window. --- src/features_window.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/features_window.py b/src/features_window.py index a57822959..0dcabe8d7 100644 --- a/src/features_window.py +++ b/src/features_window.py @@ -95,10 +95,14 @@ class FeaturesWindow: _('Transform LaTeX expressions between $$ $$.'), _('Requires texlive-latex-base, dvips and imagemagick. You have to set \'use_latex\' to True in the Advanced Configuration Editor.'), _('Feature not available under Windows.')), - _('End to end encryption'): (self.pycrypto_available, + _('End to End Encryption'): (self.pycrypto_available, _('Encrypting chatmessages.'), _('Requires python-crypto.'), _('Requires python-crypto.')), + _('Off the Record Encryption'): (self.otr_available, + _('Encrypting chatmessages in a way that even works through gateways.'), + _('Requires pyotr and libotr.'), + _('Requires pyotr and libotr.')), _('RST Generator'): (self.docutils_available, _('Generate XHTML output from RST code (see http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html).'), _('Requires python-docutils.'), @@ -308,6 +312,11 @@ class FeaturesWindow: from common import gajim return gajim.HAVE_PYCRYPTO + def otr_available(self): + if gajim.otr_module: + return True + return False + def docutils_available(self): try: import docutils