Added an actions button inside all displayed posts which is able to translate and check spelling on posts' messages

This commit is contained in:
2021-04-21 08:57:47 -05:00
parent 1d9e6f8074
commit e23c6645f6
4 changed files with 17 additions and 7 deletions

View File

@@ -309,7 +309,7 @@ class displayPostPresenter(base.basePresenter):
output.speak(_("Translated"))
def spellcheck(self, text):
checker = SpellChecker.spellchecker.spellChecker(text, "")
checker = SpellChecker.spellchecker.spellChecker(text)
if hasattr(checker, "fixed_text"):
self.send_message("set", control="post_view", value=checker.fixed_text)
self.send_message("focus_control", control="post_view")