Translate script function documentation bits

This commit is contained in:
Laurent Monin
2020-03-10 14:39:13 +01:00
committed by Philipp Wolfer
parent edc6bbf72b
commit 655e7faca1

View File

@@ -173,14 +173,14 @@ class FunctionRegistryItem:
def markdowndoc(self):
if self.documentation is not None:
ret = self.documentation
ret = _(self.documentation)
else:
ret = ''
return self._preprocess(ret)
def htmldoc(self):
if self.documentation is not None and markdown is not None:
ret = markdown(self.documentation)
ret = markdown(_(self.documentation))
else:
ret = ''
return self._preprocess(ret)