Add two wxLogDebug printfs.

Originally committed to SVN as r4001.
This commit is contained in:
Amar Takhar 2010-01-19 10:24:07 +00:00
parent 14d39aeb80
commit 00c095f3c3
2 changed files with 4 additions and 1 deletions

View File

@ -248,7 +248,7 @@ void HunspellSpellChecker::SetLanguage(wxString language) {
dicpath = path + language + _T(".dic");
usrdicpath = userPath + language + _T(".dic");
printf("Using dictionary %ls for spellchecking\n", dicpath.c_str());
wxLogDebug(_("Using dictionary %ls for spellchecking"), dicpath.c_str());
// Check if language is available
if (!wxFileExists(affpath) || !wxFileExists(dicpath)) return;

View File

@ -142,6 +142,7 @@ void MySpellThesaurus::SetLanguage(wxString language) {
// Get dir name
wxString path = StandardPaths::DecodePathMaybeRelative(Options.AsText(_T("Dictionaries path")), _T("?data")) + _T("/");
// Get affix and dictionary paths
wxString idxpath = path + _T("th_") + language + _T(".idx");
wxString datpath = path + _T("th_") + language + _T(".dat");
@ -149,6 +150,8 @@ void MySpellThesaurus::SetLanguage(wxString language) {
// Check if language is available
if (!wxFileExists(idxpath) || !wxFileExists(datpath)) return;
wxLogDebug(_("Using dictionary %ls for thesaurus"), datpath.c_str());
// Load
mythes = new MyThes(idxpath.mb_str(wxConvLocal),datpath.mb_str(wxConvLocal));
conv = NULL;