Fixed a typo

This commit is contained in:
Manuel Cortez 2019-12-03 12:11:09 -06:00
parent 0bf0fd9f27
commit 20dcb4a475

View File

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