From e89e7b4be2c503fad91f0cfaa5051fe71a742889 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Tue, 26 Jan 2010 13:56:56 +0000 Subject: [PATCH] Make dictionary printfs easier to read. (also add one for the thesaurus) Originally committed to SVN as r4051. --- aegisub/src/spellchecker_hunspell.cpp | 2 +- aegisub/src/thesaurus_myspell.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/aegisub/src/spellchecker_hunspell.cpp b/aegisub/src/spellchecker_hunspell.cpp index c74748e2a..d62c6a24c 100644 --- a/aegisub/src/spellchecker_hunspell.cpp +++ b/aegisub/src/spellchecker_hunspell.cpp @@ -267,7 +267,7 @@ void HunspellSpellChecker::SetLanguage(wxString language) { dicpath = wxString::Format("%s%s.dic", path, language); usrdicpath = wxString::Format("%s%s.dic", userPath, language); - wxLogDebug("Using dictionary %ls for spellchecking\n", dicpath); + wxLogDebug("Using dictionary: %ls", dicpath); // Check if language is available if (!wxFileExists(affpath) || !wxFileExists(dicpath)) return; diff --git a/aegisub/src/thesaurus_myspell.cpp b/aegisub/src/thesaurus_myspell.cpp index e602c5da5..ad6582e56 100644 --- a/aegisub/src/thesaurus_myspell.cpp +++ b/aegisub/src/thesaurus_myspell.cpp @@ -161,6 +161,8 @@ void MySpellThesaurus::SetLanguage(wxString language) { // Check if language is available if (!wxFileExists(idxpath) || !wxFileExists(datpath)) return; + wxLogDebug(_("Using thesarus: %ls"), datpath.c_str()); + // Load mythes = new MyThes(idxpath.mb_str(wxConvLocal),datpath.mb_str(wxConvLocal)); conv = NULL;