#include "LString.h"
#include "support/lstrings.h"
#include "lyxrc.h"
+#include "language.h"
#include "debug.h"
#include "encoding.h"
#include "sp_ispell.h"
PSpell::PSpell()
- : sc(0), els(0), spell_error_object(0), flag(ISP_UNKNOWN)
+ : sc(0), els(0), spell_error_object(0), flag(ISP_UNKNOWN),
+ alive_(false)
{
}
PSpell::PSpell(BufferParams const & params, string const & lang)
- : sc(0), els(0), spell_error_object(0), flag(ISP_UNKNOWN)
+ : sc(0), els(0), spell_error_object(0), flag(ISP_UNKNOWN),
+ alive_(false)
{
initialize(params, lang);
}
error_ = 0;
sc = to_pspell_manager(spell_error_object);
spell_error_object = 0;
+ alive_ = true;
}
}
if (isp_pid == -1) {
error_ =
"\n\n"
- "The ispell-process has died for some reason. *One* possible reason\n"
- "could be that you do not have a dictionary file\n"
- "for the language of this document installed.\n"
- "Check /usr/lib/ispell or set another\n"
- "dictionary in the Spellchecker Options menu.";
+ "The spellcheck-process has died for some reason.\n"
+ "*One* possible reason could be that you do not have\n"
+ "a dictionary file for the language of this document\n"
+ "installed.\n"
+ "Check your spellchecker or set another dictionary\n"
+ "in the Spellchecker Options menu.\n\n";
} else {
error_ = 0;
}