From 69840e65d8714972186c0cb70f13006a440bd739 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Tue, 18 Feb 2014 18:52:42 +0000 Subject: changed message with file link git-svn-id: http://svn.miranda-ng.org/main/trunk@8168 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/DropBox/src/dropBox_proto.cpp | 10 ++++++++-- plugins/DropBox/src/version.h | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/plugins/DropBox/src/dropBox_proto.cpp b/plugins/DropBox/src/dropBox_proto.cpp index a9b9d08edb..ece6097cf3 100644 --- a/plugins/DropBox/src/dropBox_proto.cpp +++ b/plugins/DropBox/src/dropBox_proto.cpp @@ -162,7 +162,13 @@ bool DropBoxSendFileChunkedEnd(const char *fileName, const char *uploadId, MCONT if (root != NULL) { JSONNODE *node = json_get(root, "url"); - char *message = mir_utf8encodeW(json_as_string(node)); + char message[1024]; + mir_snprintf( + message, + SIZEOF(message), + Translate("Link to download file \"%s\": %s"), + fileName, + mir_utf8encodeW(json_as_string(node))); DBEVENTINFO dbei = { sizeof(dbei) }; dbei.szModule = MODULE; @@ -254,7 +260,7 @@ INT_PTR DropBoxSendFile(WPARAM wParam, LPARAM lParam) ftp->pfts.hContact = pccsd->hContact; char **files = (char**)pccsd->lParam; - + for (ftp->pfts.totalFiles = 0; files[ftp->pfts.totalFiles]; ftp->pfts.totalFiles++); ftp->pfts.pszFiles = new char*[ftp->pfts.totalFiles + 1]; ftp->pfts.pszFiles[ftp->pfts.totalFiles] = NULL; diff --git a/plugins/DropBox/src/version.h b/plugins/DropBox/src/version.h index dc8892c2de..65107a26a2 100644 --- a/plugins/DropBox/src/version.h +++ b/plugins/DropBox/src/version.h @@ -8,7 +8,7 @@ #define __PLUGIN_NAME "DropBox" #define __INTERNAL_NAME "DropBox" #define __FILENAME "DropBox.dll" -#define __DESCRIPTION "Provide ability to load file on DropBox." +#define __DESCRIPTION "Provides ability to upload files on DropBox." #define __AUTHOR "unsane" #define __AUTHOREMAIL "" #define __AUTHORWEB "http://miranda-ng.org/p/DropBox/" -- cgit v1.2.3