mirror of https://github.com/odrling/Aegisub
Add two wxLogDebug printfs.
Originally committed to SVN as r4001.
This commit is contained in:
parent
14d39aeb80
commit
00c095f3c3
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue