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()