summaryrefslogtreecommitdiff
path: root/plugins/Ping
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-04-22 09:42:22 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-04-22 09:42:22 +0000
commitb76abc0f853973cbbe4420957a82aeecc3060ac0 (patch)
tree514fd035ee2a63b30d89baf5de8c7837aa39a238 /plugins/Ping
parent7025c41ae9ae2260e766b2d6dfb106a07211e201 (diff)
translation fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@9037 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Ping')
-rw-r--r--plugins/Ping/src/options.cpp4
1 files changed, 3 insertions, 1 deletions
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;