diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2014-07-04 21:02:05 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2014-07-04 21:02:05 +0000 |
commit | f1bbd65bbaa4291c194244424668aa16c357ca0f (patch) | |
tree | 2428e11f4554e4c8fd1c1863bcb6e3e769013088 /plugins/New_GPG/src/options.cpp | |
parent | 374a75a4d6f709c30232828f5db64f1e7278b622 (diff) |
CommandLine:
-translation fixes
-fixed message encoding
-fixed timestamps
-fixed: "sounds" command without params returned popup
NewGPG:
-translation fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@9681 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/New_GPG/src/options.cpp')
-rwxr-xr-x | plugins/New_GPG/src/options.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/New_GPG/src/options.cpp b/plugins/New_GPG/src/options.cpp index b7db869e86..a8f5ff9193 100755 --- a/plugins/New_GPG/src/options.cpp +++ b/plugins/New_GPG/src/options.cpp @@ -355,9 +355,9 @@ static INT_PTR CALLBACK DlgProcGpgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LP szKey = (char*)GlobalLock(hMem);
if(!szKey)
{
- char msg[64];
- mir_snprintf(msg, 64, "Failed to lock memory with error %d", GetLastError());
- MessageBoxA(0, msg, "Error", MB_OK);
+ TCHAR msg[64];
+ mir_sntprintf(msg, 64, TranslateT("Failed to lock memory with error %d"), GetLastError());
+ MessageBox(0, msg, TranslateT("Error"), MB_OK);
GlobalFree(hMem);
}
memcpy(szKey, str.c_str(), str.size());
@@ -368,17 +368,17 @@ static INT_PTR CALLBACK DlgProcGpgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LP if(!SetClipboardData(CF_OEMTEXT, hMem))
{
GlobalFree(hMem);
- char msg[64];
- mir_snprintf(msg, 64, "Failed write to clipboard with error %d", GetLastError());
- MessageBoxA(0, msg, "Error", MB_OK);
+ TCHAR msg[64];
+ mir_sntprintf(msg, 64, TranslateT("Failed write to clipboard with error %d"), GetLastError());
+ MessageBox(0, msg, TranslateT("Error"), MB_OK);
}
CloseClipboard();
}
else
{
- char msg[64];
- mir_snprintf(msg, 64, "Failed to open clipboard with error %d", GetLastError());
- MessageBoxA(0, msg, "Error", MB_OK);
+ TCHAR msg[64];
+ mir_sntprintf(msg, 64, TranslateT("Failed to open clipboard with error %d"), GetLastError());
+ MessageBox(0, msg, TranslateT("Error"), MB_OK);
}
}
break;
@@ -734,9 +734,9 @@ static INT_PTR CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam hcnt = metaGetMostOnline(hcnt);
TranslateDialogDefault(hwndDlg);
{
- string msg = Translate("Load Public GPG Key for ");
- msg += (char*)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)hcnt, 0);
- SetWindowTextA(hwndDlg, msg.c_str());
+ wstring msg = TranslateT("Load Public GPG Key for ");
+ msg += (TCHAR*)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)hcnt, GCDNF_TCHAR);
+ SetWindowText(hwndDlg, msg.c_str());
}
if(!hcnt)
{
|