From 1eafcf387847f384eca282abfe5fa7242e1405ab Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Thu, 31 Jan 2013 18:19:24 +0000 Subject: - translation fixes (patch from person) git-svn-id: http://svn.miranda-ng.org/main/trunk@3381 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HTTPServer/src/GuiElements.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/HTTPServer') diff --git a/plugins/HTTPServer/src/GuiElements.cpp b/plugins/HTTPServer/src/GuiElements.cpp index 8c82d97595..034a69e9dc 100644 --- a/plugins/HTTPServer/src/GuiElements.cpp +++ b/plugins/HTTPServer/src/GuiElements.cpp @@ -433,7 +433,10 @@ UINT CALLBACK ShareNewFileDialogHook( bool bShowShareNewFileDlg(HWND hwndOwner, STFileShareInfo * pstNewShare) { OPENFILENAME ofn = {0}; ofn.lStructSize = sizeof(OPENFILENAME); - ofn.lpstrFilter = _T("All Files (*.*)\0*.*\0"); + + char temp[MAX_PATH]; + mir_snprintf(temp, SIZEOF(temp), _T("%s (*.*)%c*.*%c%c"), Translate("All files"), 0, 0, 0); + ofn.lpstrFilter = temp; ofn.lpstrFile = pstNewShare->pszRealPath; ofn.nMaxFile = pstNewShare->dwMaxRealPath; -- cgit v1.2.3