2781: Turkish dictionnary (Enchant's zemberek_provider) on Note Editor
returns an error svn: r12245
This commit is contained in:
parent
3ae4e233db
commit
930c47b290
@ -240,8 +240,13 @@ class Spell:
|
|||||||
gtkspell_spell.detach()
|
gtkspell_spell.detach()
|
||||||
self._active_language = lang_code
|
self._active_language = lang_code
|
||||||
return
|
return
|
||||||
|
try:
|
||||||
gtkspell_spell.set_language(lang_code)
|
gtkspell_spell.set_language(lang_code)
|
||||||
self._active_language = lang_code
|
self._active_language = lang_code
|
||||||
|
except RuntimeError:
|
||||||
|
#This catches error with old gtkspell versions that generate
|
||||||
|
#this exception if dict cannot be loaded.
|
||||||
|
self._active_language = 'off'
|
||||||
|
|
||||||
# Public API
|
# Public API
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user