diff options
author | George Hazan <george.hazan@gmail.com> | 2013-02-17 12:47:04 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-02-17 12:47:04 +0000 |
commit | e392f4d68b13e6e04eaf4da1ab2a886f8c165253 (patch) | |
tree | c481ad07ea51dd0174d60ab096d4526ffc6917b8 /src | |
parent | d9f1ce1a3740f213cd0b43085a399bd03f64f200 (diff) |
patch for the messages to be translated
git-svn-id: http://svn.miranda-ng.org/main/trunk@3622 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/protocols/protoopts.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/modules/protocols/protoopts.cpp b/src/modules/protocols/protoopts.cpp index e0cc9e6afc..420540b314 100644 --- a/src/modules/protocols/protoopts.cpp +++ b/src/modules/protocols/protoopts.cpp @@ -33,24 +33,24 @@ INT_PTR Proto_EnumProtocols(WPARAM, LPARAM); bool CheckProtocolOrder(void);
#define errMsg \
-"WARNING! The account is going to be deleted. It means that all its \
+TranslateT("WARNING! The account is going to be deleted. It means that all its \
settings, contacts and histories will be also erased.\n\n\
-Are you absolutely sure?"
+Are you absolutely sure?")
#define upgradeMsg \
-"Your account was successfully upgraded. \
+TranslateT("Your account was successfully upgraded. \
To activate it, restart of Miranda is needed.\n\n\
-If you want to restart Miranda now, press Yes, if you want to upgrade another account, press No"
-
+If you want to restart Miranda now, press Yes, if you want to upgrade another account, press No")
+// is upgradeMsg in use in any place?
#define legacyMsg \
-"This account uses legacy protocol plugin. \
-Use Miranda NG options dialogs to change it's preferences."
+TranslateT("This account uses legacy protocol plugin. \
+Use Miranda NG options dialogs to change it's preferences.")
#define welcomeMsg \
-"Welcome to Miranda NG's account manager!\n \
+TranslateT("Welcome to Miranda NG's account manager!\n \
Here you can set up your IM accounts.\n\n \
Select an account from the list on the left to see the available options. \
-Alternatively, just click on the Plus sign underneath the list to set up a new IM account."
+Alternatively, just click on the Plus sign underneath the list to set up a new IM account.")
static HWND hAccMgr = NULL;
@@ -444,7 +444,7 @@ static void sttUpdateAccountInfo(HWND hwndDlg, struct TAccMgrData *dat) }
else {
ShowWindow( GetDlgItem(hwndDlg, IDC_TXT_INFO), SW_SHOW);
- SetWindowText( GetDlgItem(hwndDlg, IDC_TXT_INFO), TranslateT(legacyMsg));
+ SetWindowText( GetDlgItem(hwndDlg, IDC_TXT_INFO), legacyMsg);
} }
return;
} }
@@ -455,7 +455,7 @@ static void sttUpdateAccountInfo(HWND hwndDlg, struct TAccMgrData *dat) EnableWindow( GetDlgItem(hwndDlg, IDC_OPTIONS), FALSE);
ShowWindow( GetDlgItem(hwndDlg, IDC_TXT_INFO), SW_SHOW);
- SetWindowText( GetDlgItem(hwndDlg, IDC_TXT_INFO), TranslateT(welcomeMsg));
+ SetWindowText( GetDlgItem(hwndDlg, IDC_TXT_INFO), welcomeMsg);
}
INT_PTR CALLBACK AccMgrDlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)
@@ -855,7 +855,7 @@ INT_PTR CALLBACK AccMgrDlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM MB_ICONERROR | MB_OK);
break;
}
- if (IDYES == MessageBox(NULL, TranslateT(errMsg), buf, MB_ICONSTOP | MB_DEFBUTTON2 | MB_YESNO)) {
+ if (IDYES == MessageBox(NULL, errMsg, buf, MB_ICONSTOP | MB_DEFBUTTON2 | MB_YESNO)) {
// lock controls to avoid changes during remove process
ListBox_SetCurSel(hList, -1);
sttUpdateAccountInfo(hwndDlg, dat);
|