From 20dcb4a475bb4cf2bab5e0cef582f33f8fc8eca8 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Tue, 3 Dec 2019 12:11:09 -0600 Subject: [PATCH] Fixed a typo --- src/extra/SpellChecker/spellchecker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extra/SpellChecker/spellchecker.py b/src/extra/SpellChecker/spellchecker.py index 8080e43..13f88db 100644 --- a/src/extra/SpellChecker/spellchecker.py +++ b/src/extra/SpellChecker/spellchecker.py @@ -19,7 +19,7 @@ class spellChecker(object): self.checker = checker.SpellChecker() log.debug("Using language: %s" % (languageHandler.getLanguage(),)) try: - self.checker.set_language(languageHandler.curLang::2]) + self.checker.set_language(languageHandler.curLang[:2]) except ValueError: log.exception("Dictionary for language %s not found." % (languageHandler.curLang,)) wx_ui.dict_not_found_error()