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;
}
if (!haveLanguageFiles(h_path)) {
return false;
}
+ LYXERR(Debug::FILES, " found " << h_path);
hpath = h_path;
return true;
}