add an entry in features window for RST generator
This commit is contained in:
parent
ba608b6edd
commit
9fb0a1e29c
1 changed files with 11 additions and 0 deletions
|
@ -94,6 +94,10 @@ class FeaturesWindow:
|
||||||
_('Encrypting chatmessages.'),
|
_('Encrypting chatmessages.'),
|
||||||
_('Requires python-crypto.'),
|
_('Requires python-crypto.'),
|
||||||
_('Requires python-crypto.')),
|
_('Requires python-crypto.')),
|
||||||
|
_('RST Generator'): (self.docutils_available,
|
||||||
|
_('Generate XHTML output from RST code (see http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html).'),
|
||||||
|
_('Requires python-docutils.'),
|
||||||
|
_('Requires python-docutils.')),
|
||||||
}
|
}
|
||||||
|
|
||||||
# name, supported
|
# name, supported
|
||||||
|
@ -283,3 +287,10 @@ class FeaturesWindow:
|
||||||
def pycrypto_available(self):
|
def pycrypto_available(self):
|
||||||
from common import gajim
|
from common import gajim
|
||||||
return gajim.HAVE_PYCRYPTO
|
return gajim.HAVE_PYCRYPTO
|
||||||
|
|
||||||
|
def docutils_available(self):
|
||||||
|
try:
|
||||||
|
import docutils
|
||||||
|
except:
|
||||||
|
return False
|
||||||
|
return True
|
||||||
|
|
Loading…
Add table
Reference in a new issue