From b76abc0f853973cbbe4420957a82aeecc3060ac0 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 22 Apr 2014 09:42:22 +0000 Subject: translation fix git-svn-id: http://svn.miranda-ng.org/main/trunk@9037 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Ping/src/options.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/Ping/src/options.cpp b/plugins/Ping/src/options.cpp index ed5b07a46e..a4775eb105 100644 --- a/plugins/Ping/src/options.cpp +++ b/plugins/Ping/src/options.cpp @@ -81,13 +81,15 @@ static INT_PTR CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA break; case IDC_BTN_LOGBROWSE: { + TCHAR filter[MAX_PATH]; + mir_sntprintf(filter, SIZEOF(filter), _T("%s%c*.txt%c%s%c*.*%c"), TranslateT("Text Files (*.txt)"), 0, 0, TranslateT("All Files"), 0, 0); OPENFILENAME ofn = {0}; ofn.lStructSize = sizeof(ofn); ofn.lpstrFile = options.log_filename; ofn.hwndOwner = hwndDlg; ofn.nMaxFile = SIZEOF(options.log_filename); ofn.lpstrTitle = TranslateT("Open log file"); - ofn.lpstrFilter = LPGENT("All\0*.*\0Text\0*.TXT\0"); + ofn.lpstrFilter = filter; ofn.nFilterIndex = 1; ofn.lpstrFileTitle = NULL; ofn.nMaxFileTitle = 0; -- cgit v1.2.3