Author: sanda
Date: Tue May 3 20:32:14 2011
New Revision: 38575
URL: http://www.lyx.org/trac/changeset/38575
Log:
Give more info whats actually going on in hunspell.
Modified:
lyx-devel/trunk/src/HunspellChecker.cpp
Modified: lyx-devel/trunk/src/HunspellChecker.cpp
==============================================================================
--- lyx-devel/trunk/src/HunspellChecker.cpp Tue May 3 16:23:21 2011
(r38574)
+++ lyx-devel/trunk/src/HunspellChecker.cpp Tue May 3 20:32:14 2011
(r38575)
@@ -143,10 +143,13 @@
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 @@
if (!haveLanguageFiles(h_path)) {
return false;
}
+ LYXERR(Debug::FILES, " found " << h_path);
hpath = h_path;
return true;
}