summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2013-01-16 18:46:30 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2013-01-16 18:46:30 +0000
commitd96f8c25bdab08f82e99913f1a46e0b7eb88a316 (patch)
tree6e233acd4e79f7b4d54b2e9f4e7b1f41dc4281af
parent13757ca8746dd25c01edde8f1a299500a3a3bfea (diff)
_T > TaranslateT when needed (patch from person)
git-svn-id: http://svn.miranda-ng.org/main/trunk@3120 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/TopToolBar/src/toolbar.cpp2
-rw-r--r--plugins/TrafficCounter/src/statistics.c4
-rw-r--r--plugins/WhenWasIt/src/services.cpp14
-rw-r--r--plugins/YAMN/src/mails/mime.cpp2
-rw-r--r--plugins/YAMN/src/proto/pop3/pop3opt.cpp2
-rw-r--r--protocols/Twitter/src/proto.cpp4
6 files changed, 14 insertions, 14 deletions
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;
diff --git a/protocols/Twitter/src/proto.cpp b/protocols/Twitter/src/proto.cpp
index 7532c84d86..9437d01fce 100644
--- a/protocols/Twitter/src/proto.cpp
+++ b/protocols/Twitter/src/proto.cpp
@@ -395,7 +395,7 @@ int TwitterProto::OnModulesLoaded(WPARAM wParam,LPARAM lParam)
nlu.ptszDescriptiveName = descr;
hNetlib_ = (HANDLE)CallService(MS_NETLIB_REGISTERUSER,0,(LPARAM)&nlu);
if(hNetlib_ == 0)
- MessageBox(0,_T("Unable to get Netlib connection for Twitter"),_T("Twitter"),0);
+ MessageBox(0, TranslateT("Unable to get Netlib connection for Twitter"), TranslateT("Twitter"), 0);
// Create avatar network connection (TODO: probably remove this)
char module[512];
@@ -405,7 +405,7 @@ int TwitterProto::OnModulesLoaded(WPARAM wParam,LPARAM lParam)
nlu.ptszDescriptiveName = descr;
hAvatarNetlib_ = (HANDLE)CallService(MS_NETLIB_REGISTERUSER,0,(LPARAM)&nlu);
if(hAvatarNetlib_ == 0)
- MessageBox(0,_T("Unable to get avatar Netlib connection for Twitter"),_T("Twitter"),0);
+ MessageBox(0, TranslateT("Unable to get avatar Netlib connection for Twitter"), TranslateT("Twitter"), 0);
twit_.set_handle(hNetlib_);