translate / virtaal

Easy-to-use and powerful offline translation tool
https://virtaal.translatehouse.org
GNU General Public License v2.0
300 stars 58 forks source link

Spell checking broken when dictionary missing #717

Closed dwaynebailey closed 15 years ago

dwaynebailey commented 15 years ago

If you have the correct dictionary installed then spell checking automagic detection seems to work very well. However if its missing then things seem to go wrong.

Try this: 1) Ensure hunspell-nl is not installed 2) virtaal nl.po 3) Some entries are marked as spell checking errors, not sure how it works that out but it looks rather strange.

What I think should happen here:

Some other observations:

friedelwolff commented 15 years ago

This is a feature/bug of gtkspell. If you select a language which it doesn't have installed, I think it falls back to your locale's dictionary. The only way around this that I see, is to import enchant (assuming that gtkspell only works with enchant, which will become increasingly true), and to check if a checker is available before we ask gtkspell for it. If not, we should just not enable spell checking.

dwaynebailey commented 15 years ago

http://sourceforge.net/tracker/index.php?func=detail&aid=2183129&group_id=7896&atid=357896

Is a feature request for this feature

http://developer.pidgin.im/ticket/7310

Seems to highlight the problem as Friedel outlines. Also the mailing list suggests querying enchant to see if the language is in the provided dics again as Friedel suggests.

walterl commented 15 years ago

Fixed in revision 10193.