From d96f8c25bdab08f82e99913f1a46e0b7eb88a316 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Wed, 16 Jan 2013 18:46:30 +0000 Subject: _T > TaranslateT when needed (patch from person) git-svn-id: http://svn.miranda-ng.org/main/trunk@3120 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TopToolBar/src/toolbar.cpp | 2 +- plugins/TrafficCounter/src/statistics.c | 4 ++-- plugins/WhenWasIt/src/services.cpp | 14 +++++++------- plugins/YAMN/src/mails/mime.cpp | 2 +- plugins/YAMN/src/proto/pop3/pop3opt.cpp | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) (limited to 'plugins') diff --git a/plugins/TopToolBar/src/toolbar.cpp b/plugins/TopToolBar/src/toolbar.cpp index 3fc13c09b9..dde3ee5134 100644 --- a/plugins/TopToolBar/src/toolbar.cpp +++ b/plugins/TopToolBar/src/toolbar.cpp @@ -649,7 +649,7 @@ int LoadToolbarModule() { if ( !ServiceExists(MS_CLIST_FRAMES_ADDFRAME)) { if ( !db_get_b(NULL, TTB_OPTDIR, "WarningDone", 0)) - MessageBox(0, TranslateT("Frames service has not been found, so plugin will be disabled.\nTo run it you need to install and / or enable contact list plugin that supports it:\n- Modern contact list\n- MultiWindow (MW)\n- Nicer+\nYou can get them at http://miranda-ng.org"), _T("TopToolBar"), 0); + MessageBox(0, TranslateT("Frames service has not been found, so plugin will be disabled.\nTo run it you need to install and / or enable contact list plugin that supports it:\n- Modern contact list\n- MultiWindow (MW)\n- Nicer+\nYou can get them at http://miranda-ng.org"), TranslateT("TopToolBar"), 0); db_set_b(NULL, TTB_OPTDIR, "WarningDone", 1); return 1; } diff --git a/plugins/TrafficCounter/src/statistics.c b/plugins/TrafficCounter/src/statistics.c index 14a121f4bd..03e30f2e90 100644 --- a/plugins/TrafficCounter/src/statistics.c +++ b/plugins/TrafficCounter/src/statistics.c @@ -140,7 +140,7 @@ INT_PTR CALLBACK DlgProcOptStatistics(HWND hwndDlg, UINT msg, WPARAM wParam, LPA if (IDOK != MessageBox(hwndDlg, TranslateT("Now traffic statistics for selected accounts will be cleared.\nContinue?"), - _T("Traffic counter"), + TranslateT("Traffic counter"), MB_OKCANCEL | MB_ICONWARNING)) break; GetLocalTime(&stNow); @@ -336,7 +336,7 @@ void Stat_ReadFile(BYTE n) ReadFile(ProtoList[n].hFile, &ProtoList[n].AllStatistics[0], sizeof(HOURLYSTATS)*ProtoList[n].NumberOfRecords, &BytesRead, NULL); if (!BytesRead) { - MessageBox(TrafficHwnd, TranslateT("Couldn't read statistics file"), _T("Traffic Counter"), MB_OK); + MessageBox(TrafficHwnd, TranslateT("Couldn't read statistics file"), TranslateT("Traffic Counter"), MB_OK); return; } } diff --git a/plugins/WhenWasIt/src/services.cpp b/plugins/WhenWasIt/src/services.cpp index 58e1013b48..0af7b99e39 100644 --- a/plugins/WhenWasIt/src/services.cpp +++ b/plugins/WhenWasIt/src/services.cpp @@ -212,8 +212,8 @@ INT_PTR RefreshUserDetailsService(WPARAM wParam, LPARAM lParam) HANDLE result = CreateThread(NULL, 0, RefreshUserDetailsWorkerThread, NULL, 0, &threadID); if ( !result) { TCHAR buffer[1024]; - _stprintf(buffer, _T("Could not create worker thread. Error#%d - threadID %d"), GetLastError(), threadID); - MessageBox(0, buffer, _T("Error"), MB_OK | MB_ICONERROR); + _stprintf(buffer, TranslateT("Could not create worker thread. Error#%d - threadID %d"), GetLastError(), threadID); + MessageBox(0, buffer, TranslateT("Error"), MB_OK | MB_ICONERROR); } if ((result != NULL) && (result != INVALID_HANDLE_VALUE)) @@ -279,7 +279,7 @@ int DoImport(TCHAR *fileName) { FILE *fin = _tfopen(fileName, _T("rt")); if ( !fin) { - MessageBox(0, _T("Could not open file to import birthdays"), _T("Error"), MB_OK | MB_ICONERROR); + MessageBox(0, TranslateT("Could not open file to import birthdays"), TranslateT("Error"), MB_OK | MB_ICONERROR); return 1; } @@ -328,12 +328,12 @@ int DoExport(TCHAR *fileName) { FILE *fout = _tfopen(fileName, _T("wt")); if ( !fout) { - MessageBox(0, _T("Could not open file to export birthdays"), _T("Error"), MB_OK | MB_ICONERROR); + MessageBox(0, TranslateT("Could not open file to export birthdays"), TranslateT("Error"), MB_OK | MB_ICONERROR); return 1; } - _ftprintf(fout, _T("%c%s"), _T(COMMENT_CHAR), _T("Please do not edit this file by hand. Use the export function of WhenWasIt plugin.\n")); - _ftprintf(fout, _T("%c%s"), _T(COMMENT_CHAR), _T("Warning! Please do not mix Unicode and Ansi exported birthday files. You should use the same version (Ansi/Unicode) of WhenWasIt that was used to export the info.\n")); - _ftprintf(fout, _T("%c%s"), _T(COMMENT_CHAR), _T("This file was exported with a Unicode version of WhenWasIt. Please only use a Unicode version of the plugin to import the birthdays.\n")); + _ftprintf(fout, _T("%c%s"), _T(COMMENT_CHAR), TranslateT("Please do not edit this file by hand. Use the export function of WhenWasIt plugin.\n")); + _ftprintf(fout, _T("%c%s"), _T(COMMENT_CHAR), TranslateT("Warning! Please do not mix Unicode and Ansi exported birthday files. You should use the same version (Ansi/Unicode) of WhenWasIt that was used to export the info.\n")); + _ftprintf(fout, _T("%c%s"), _T(COMMENT_CHAR), TranslateT("This file was exported with a Unicode version of WhenWasIt. Please only use a Unicode version of the plugin to import the birthdays.\n")); HANDLE hContact = db_find_first(); while (hContact) { diff --git a/plugins/YAMN/src/mails/mime.cpp b/plugins/YAMN/src/mails/mime.cpp index 7b00979cad..13710a2557 100644 --- a/plugins/YAMN/src/mails/mime.cpp +++ b/plugins/YAMN/src/mails/mime.cpp @@ -594,7 +594,7 @@ void ParseAPart(APartDataType *data) } catch(...) { - MessageBox(NULL,_T("Translate header error"),_T(""),0); + MessageBox(NULL, TranslateT("Translate header error"), _T(""), 0); } if (data->body) data->bodyLen = (int)strlen(data->body); } diff --git a/plugins/YAMN/src/proto/pop3/pop3opt.cpp b/plugins/YAMN/src/proto/pop3/pop3opt.cpp index c730b4b3fc..f49033043b 100644 --- a/plugins/YAMN/src/proto/pop3/pop3opt.cpp +++ b/plugins/YAMN/src/proto/pop3/pop3opt.cpp @@ -884,7 +884,7 @@ INT_PTR CALLBACK DlgProcPOP3AccOpt(HWND hDlg,UINT msg,WPARAM wParam,LPARAM lPara if (!GetOpenFileName(&OFNStruct)) { if (CommDlgExtendedError()) - MessageBox(hDlg,_T("Dialog box error"),_T("Failed"),MB_OK); + MessageBox(hDlg, TranslateT("Dialog box error"), TranslateT("Failed"), MB_OK); } else DlgSetItemTextT(hDlg, IDC_EDITAPP, OFNStruct.lpstrFile); delete[] OFNStruct.lpstrFile; -- cgit v1.2.3