Fixed a bug in the spell checker

This commit is contained in:
Manuel Cortez 2016-02-02 09:07:40 -06:00
parent 112391afeb
commit 696faed007

View File

@ -19,7 +19,7 @@ class spellChecker(object):
try: try:
if config.app["app-settings"]["language"] == "system": if config.app["app-settings"]["language"] == "system":
log.debug("Using the system language") log.debug("Using the system language")
self.checker = SpellChecker(filters=[twitterFilter.TwitterFilter, tokenize.EmailFilter, tokenize.URLFilter]) self.checker = SpellChecker(languageHandler.curLang, filters=[twitterFilter.TwitterFilter, tokenize.EmailFilter, tokenize.URLFilter])
else: else:
log.debug("Using language: %s" % (languageHandler.getLanguage(),)) log.debug("Using language: %s" % (languageHandler.getLanguage(),))
self.checker = SpellChecker(languageHandler.getLanguage(), filters=[twitterFilter.TwitterFilter, tokenize.EmailFilter, tokenize.URLFilter]) self.checker = SpellChecker(languageHandler.getLanguage(), filters=[twitterFilter.TwitterFilter, tokenize.EmailFilter, tokenize.URLFilter])