]> git.lyx.org Git - lyx.git/blobdiff - src/ispell.C
Fix bug 2195: Slowness in rendering inside insets, especially on the Mac
[lyx.git] / src / ispell.C
index c14e5da106d763bb97aa73205449e4f75199cdc0..34c291a648f8a7021db62045c4fdf47f6a7050bc 100644 (file)
 
 // HP-UX 11.x doesn't have this header
 #ifdef HAVE_SYS_SELECT_H
-#include <sys/select.h>
+# include <sys/select.h>
+#endif
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
 #endif
-#include <sys/time.h>
 
 using boost::shared_ptr;
 
@@ -263,7 +265,7 @@ ISpell::ISpell(BufferParams const & params, string const & lang)
                error_ = buf;
        } else {
                // select returned error
-               error_ = _("The spell process returned an error.\nPerhaps "
+               error_ = _("The ispell process returned an error.\nPerhaps "
                                "it has been configured wrongly ?");
        }
 
@@ -372,7 +374,7 @@ enum ISpell::Result ISpell::check(WordLangTuple const & word)
        bool error = select(err_read);
 
        if (error) {
-               error_ = _("Could not communicate with the spell-checker program.");
+               error_ = _("Could not communicate with the ispell spellchecker process.");
                return UNKNOWN_WORD;
        }