diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-01-22 16:32:19 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-01-22 16:32:19 +0000 |
commit | 44213ff453f122f787db10249f2890a26961d3e6 (patch) | |
tree | 6c5939b8f227af1553fe78792838016e513bab9e /plugins/SecureIM | |
parent | 8e943d66df0c00a5090bc2c27d7cf9ed8d4cfe14 (diff) |
- SecureIM: translation fix (patch from person)
git-svn-id: http://svn.miranda-ng.org/main/trunk@3231 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM')
-rw-r--r-- | plugins/SecureIM/src/options.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
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;
|