Add OTR in features window.

This commit is contained in:
js 2008-05-10 11:47:04 +00:00
parent c4b2cdc31f
commit 9438e3d175
1 changed files with 10 additions and 1 deletions

View File

@ -95,10 +95,14 @@ class FeaturesWindow:
_('Transform LaTeX expressions between $$ $$.'), _('Transform LaTeX expressions between $$ $$.'),
_('Requires texlive-latex-base, dvips and imagemagick. You have to set \'use_latex\' to True in the Advanced Configuration Editor.'), _('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.')), _('Feature not available under Windows.')),
_('End to end encryption'): (self.pycrypto_available, _('End to End Encryption'): (self.pycrypto_available,
_('Encrypting chatmessages.'), _('Encrypting chatmessages.'),
_('Requires python-crypto.'), _('Requires python-crypto.'),
_('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, _('RST Generator'): (self.docutils_available,
_('Generate XHTML output from RST code (see http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html).'), _('Generate XHTML output from RST code (see http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html).'),
_('Requires python-docutils.'), _('Requires python-docutils.'),
@ -308,6 +312,11 @@ class FeaturesWindow:
from common import gajim from common import gajim
return gajim.HAVE_PYCRYPTO return gajim.HAVE_PYCRYPTO
def otr_available(self):
if gajim.otr_module:
return True
return False
def docutils_available(self): def docutils_available(self):
try: try:
import docutils import docutils