summaryrefslogtreecommitdiff
path: root/plugins/HistoryLinkListPlus/src
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2013-02-01 11:11:30 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2013-02-01 11:11:30 +0000
commit6e8b980dd716254abd4de705bf23b031d2a3c9a3 (patch)
tree4a276f37208a1d4603ed60502472ddfe52010413 /plugins/HistoryLinkListPlus/src
parent8867fce20acf04102d22a3ae323975ccc6e88be1 (diff)
- translation fixes (patch from Basil)
git-svn-id: http://svn.miranda-ng.org/main/trunk@3390 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryLinkListPlus/src')
-rw-r--r--plugins/HistoryLinkListPlus/src/linklist_fct.cpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/plugins/HistoryLinkListPlus/src/linklist_fct.cpp b/plugins/HistoryLinkListPlus/src/linklist_fct.cpp
index 5dfb7c5236..508ea89e0a 100644
--- a/plugins/HistoryLinkListPlus/src/linklist_fct.cpp
+++ b/plugins/HistoryLinkListPlus/src/linklist_fct.cpp
@@ -29,6 +29,7 @@
#include <m_database.h>
#include <m_utils.h>
#include <m_langpack.h>
+#include <win2k.h>
#pragma warning(default:4100)
#pragma warning(default:4996)
@@ -1319,16 +1320,18 @@ BOOL SaveEditAsStream( HWND hDlg )
// Initialize filename field
_tcscpy_s(szFilename, _countof(szFilename), _T("*.rtf"));
// Fill in OPENFILENAME struct
- ZeroMemory(&ofn, sizeof(OPENFILENAME));
- ofn.lStructSize = sizeof(OPENFILENAME);
- ofn.hwndOwner = hDlg;
- ofn.lpstrFilter = _T("RTF File\0*.rtf\0All Files\0*.*\0\0");
- ofn.lpstrFile = szFilename;
- ofn.nMaxFile = _countof(szFilename);
- ofn.lpstrTitle = _T("Save RTF File");
- ofn.Flags = OFN_OVERWRITEPROMPT;
- // Get a filename or quit
- if ( ! GetSaveFileName( &ofn ))
+ ZeroMemory(&ofn, sizeof(OPENFILENAME));
+ ofn.lStructSize = sizeof(OPENFILENAME);
+ ofn.hwndOwner = hDlg;
+ TCHAR temp[MAX_PATH];
+ mir_sntprintf(temp, SIZEOF(temp), _T("%s (*.rtf)%c*.rtf%c%s (*.*)%c*.*%c%c"), TranslateT("RTF file"), 0, 0, TranslateT("All files"), 0, 0, 0);
+ ofn.lpstrFilter = temp;
+ ofn.lpstrFile = szFilename;
+ ofn.nMaxFile = _countof(szFilename);
+ ofn.lpstrTitle = TranslateT("Save RTF File");
+ ofn.Flags = OFN_OVERWRITEPROMPT;
+ // Get a filename or quit
+ if ( ! GetSaveFileName( &ofn ))
return FALSE;
// Create the specified file
hFile = CreateFile( szFilename, GENERIC_WRITE, 0, NULL,