mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
7d9b8a464f
commit
a20b7acd18
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user