From 44213ff453f122f787db10249f2890a26961d3e6 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Tue, 22 Jan 2013 16:32:19 +0000 Subject: - SecureIM: translation fix (patch from person) git-svn-id: http://svn.miranda-ng.org/main/trunk@3231 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SecureIM/src/options.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'plugins/SecureIM') diff --git a/plugins/SecureIM/src/options.cpp b/plugins/SecureIM/src/options.cpp index e9c067b978..a00fd70251 100644 --- a/plugins/SecureIM/src/options.cpp +++ b/plugins/SecureIM/src/options.cpp @@ -1782,7 +1782,9 @@ BOOL ShowSelectKeyDlg(HWND hParent, LPSTR KeyPath) ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_NONETWORKBUTTON; ofn.lpstrFile = KeyPath; - ofn.lpstrFilter = TranslateT("ASC files\0*.asc\0All files (*.*)\0*.*\0"); + TCHAR temp[MAX_PATH] = _T(""); + mir_sntprintf(temp, sizeof(temp),"%s\0*.asc\0%s(*.*)\0*.*\0",Translate("ASC files"),Translate("All files ")); + ofn.lpstrFilter = temp; ofn.lpstrTitle = TranslateT("Open Key File"); if (!GetOpenFileName(&ofn)) return FALSE; @@ -1851,7 +1853,9 @@ BOOL SaveExportRSAKeyDlg(HWND hParent, LPSTR key, BOOL priv) ofn.nMaxFile = MAX_PATH; ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_NONETWORKBUTTON; ofn.lpstrFile = szFile; - ofn.lpstrFilter = TranslateT("ASC files\0*.asc\0All files (*.*)\0*.*\0"); + TCHAR temp[MAX_PATH] = _T(""); + mir_sntprintf(temp, sizeof(temp),"%s\0*.asc\0%s(*.*)\0*.*\0",Translate("ASC files"),Translate("All files ")); + ofn.lpstrFilter = temp; ofn.lpstrTitle = (priv) ? TranslateT("Save Private Key File") : TranslateT("Save Public Key File"); if (!GetSaveFileName(&ofn)) return FALSE; @@ -1875,7 +1879,9 @@ BOOL LoadImportRSAKeyDlg(HWND hParent, LPSTR key, BOOL priv) ofn.nMaxFile = MAX_PATH; ofn.Flags = OFN_EXPLORER | OFN_CREATEPROMPT | OFN_OVERWRITEPROMPT | OFN_NOREADONLYRETURN; ofn.lpstrFile = szFile; - ofn.lpstrFilter = TranslateT("ASC files\0*.asc\0All files (*.*)\0*.*\0"); + TCHAR temp[MAX_PATH] = _T(""); + mir_sntprintf(temp, sizeof(temp),"%s\0*.asc\0%s(*.*)\0*.*\0",Translate("ASC files"),Translate("All files ")); + ofn.lpstrFilter = temp; ofn.lpstrTitle = (priv) ? TranslateT("Load Private Key File") : TranslateT("Load Public Key File"); if (!GetOpenFileName(&ofn)) return FALSE; -- cgit v1.2.3