Give more info whats actually going on in hunspell.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38575 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2011-05-03 18:32:14 +00:00
parent 7d9b8a464f
commit a20b7acd18

View File

@ -143,10 +143,13 @@ bool HunspellChecker::Private::haveDictionary(Language const * lang, string & hp
return false;
}
LYXERR(Debug::FILES, "check hunspell path: " << hpath << " for language " << lang);
LYXERR(Debug::FILES, "check hunspell path: " << hpath
<< " for language " << (lang ? lang->lang() : "NULL" ));
string h_path = addName(hpath, HunspellDictionaryName(lang));
// first we try lang code+variety
if (haveLanguageFiles(h_path)) {
LYXERR(Debug::FILES, " found " << h_path);
hpath = h_path;
return true;
}
@ -155,6 +158,7 @@ bool HunspellChecker::Private::haveDictionary(Language const * lang, string & hp
if (!haveLanguageFiles(h_path)) {
return false;
}
LYXERR(Debug::FILES, " found " << h_path);
hpath = h_path;
return true;
}