From daf624b5103faf66238b255e6cff871d0d59715b Mon Sep 17 00:00:00 2001 From: Dart Raiden Date: Sat, 17 Sep 2016 18:48:35 +0000 Subject: AvatarHistory: don't need translate debug messages git-svn-id: http://svn.miranda-ng.org/main/trunk@17312 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AvatarHistory/src/AvatarHistory.cpp | 10 +++++----- plugins/AvatarHistory/src/utils.cpp | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins') diff --git a/plugins/AvatarHistory/src/AvatarHistory.cpp b/plugins/AvatarHistory/src/AvatarHistory.cpp index fd70eff119..0ffab0984f 100644 --- a/plugins/AvatarHistory/src/AvatarHistory.cpp +++ b/plugins/AvatarHistory/src/AvatarHistory.cpp @@ -123,7 +123,7 @@ static int AvatarChanged(WPARAM hContact, LPARAM lParam) if (!ret || !mir_wstrcmp(dbvOldHash.ptszVal, L"-")) { //avoid duplicate "removed avatar" notifications //do not notify on an empty profile - ShowDebugPopup(hContact, TranslateT("AVH Debug"), TranslateT("Removed avatar, no avatar before... skipping")); + ShowDebugPopup(hContact, L"AVH Debug", L"Removed avatar, no avatar before... skipping"); db_free(&dbvOldHash); return 0; } @@ -138,7 +138,7 @@ static int AvatarChanged(WPARAM hContact, LPARAM lParam) else { if (ret && !mir_wstrcmp(dbvOldHash.ptszVal, avatar->hash)) { // same avatar hash, skipping - ShowDebugPopup(hContact, TranslateT("AVH Debug"), TranslateT("Hashes are the same... skipping")); + ShowDebugPopup(hContact, L"AVH Debug", L"Hashes are the same... skipping"); db_free(&dbvOldHash); return 0; } @@ -154,7 +154,7 @@ static int AvatarChanged(WPARAM hContact, LPARAM lParam) if (CopyImageFile(avatar->filename, history_filename)) ShowPopup(hContact, TranslateT("Avatar History: Unable to save avatar"), history_filename); else - ShowDebugPopup(hContact, TranslateT("AVH Debug: File copied successfully"), history_filename); + ShowDebugPopup(hContact, L"AVH Debug: File copied successfully", history_filename); MCONTACT hMetaContact = db_mc_getMeta(hContact); if (hMetaContact && ContactEnabled(hMetaContact, "LogToDisk", AVH_DEF_LOGTOHISTORY)) { @@ -164,7 +164,7 @@ static int AvatarChanged(WPARAM hContact, LPARAM lParam) if (CopyImageFile(avatar->filename, filename)) ShowPopup(hContact, TranslateT("Avatar History: Unable to save avatar"), filename); else - ShowDebugPopup(hContact, TranslateT("AVH Debug: File copied successfully"), filename); + ShowDebugPopup(hContact, L"AVH Debug: File copied successfully", filename); } } } @@ -193,7 +193,7 @@ static int AvatarChanged(WPARAM hContact, LPARAM lParam) if (CopyImageFile(avatar->filename, history_filename)) ShowPopup(hContact, TranslateT("Avatar History: Unable to save avatar"), history_filename); else - ShowDebugPopup(hContact, TranslateT("AVH Debug: File copied successfully"), history_filename); + ShowDebugPopup(hContact, L"AVH Debug: File copied successfully", history_filename); } if (opts.log_per_contact_folders) { diff --git a/plugins/AvatarHistory/src/utils.cpp b/plugins/AvatarHistory/src/utils.cpp index 2a97cf3d2f..ac3e3ab1fd 100644 --- a/plugins/AvatarHistory/src/utils.cpp +++ b/plugins/AvatarHistory/src/utils.cpp @@ -140,7 +140,7 @@ wchar_t* GetOldStyleAvatarName(wchar_t *fn, MCONTACT hContact) L"%s\\%04d-%02d-%02d %02dh%02dm%02ds", fn, curtime.wYear, curtime.wMonth, curtime.wDay, curtime.wHour, curtime.wMinute, curtime.wSecond); - ShowDebugPopup(hContact,TranslateT("AVH Debug: GetOldStyleAvatarName"),fn); + ShowDebugPopup(hContact,L"AVH Debug: GetOldStyleAvatarName",fn); return fn; } @@ -159,7 +159,7 @@ void CreateOldStyleShortcut(MCONTACT hContact, wchar_t *history_filename) } else { - ShowDebugPopup(hContact, TranslateT("AVH Debug: Shortcut created successfully"), shortcut); + ShowDebugPopup(hContact, L"AVH Debug: Shortcut created successfully", shortcut); } } -- cgit v1.2.3