mirror of
				https://github.com/MCV-Software/TWBlue.git
				synced 2025-11-04 05:47:05 +00:00 
			
		
		
		
	Spell checker module should work properly. Fixes #296
This commit is contained in:
		@@ -32,10 +32,10 @@ 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.dict = enchant.DictWithPWL(languageHandler.curLang[:2], paths.config_path("wordlist.dict"))
 | 
					    self.dict = enchant.DictWithPWL(languageHandler.curLang[:2], os.path.join(paths.config_path(), "wordlist.dict"))
 | 
				
			||||||
   else:
 | 
					   else:
 | 
				
			||||||
    log.debug("Using language: %s" % (languageHandler.getLanguage(),))
 | 
					    log.debug("Using language: %s" % (languageHandler.getLanguage(),))
 | 
				
			||||||
    self.dict = enchant.DictWithPWL(languageHandler.getLanguage()[:2], paths.config_path("wordlist.dict"))
 | 
					    self.dict = enchant.DictWithPWL(languageHandler.getLanguage()[:2], os.path.join(paths.config_path(), "wordlist.dict"))
 | 
				
			||||||
  except DictNotFoundError:
 | 
					  except DictNotFoundError:
 | 
				
			||||||
   log.exception("Dictionary for language %s not found." % (dictionary,))
 | 
					   log.exception("Dictionary for language %s not found." % (dictionary,))
 | 
				
			||||||
   wx_ui.dict_not_found_error()
 | 
					   wx_ui.dict_not_found_error()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user